目录

SplitViewOptions

Options for creating a SplitView.

Example 

import { BrowserView, SplitView } from '@mobrowser/api';

const splitView = new SplitView({
  orientation: 'horizontal',
  firstView: new BrowserView({
    url: 'https://example.com/top'
  }),
  secondView: new BrowserView({
    url: 'https://example.com/bottom'
  }),
  splitterPosition: 240,
  splitterWidth: 10
})

Properties 

orientation 

readonly orientation?: SplitViewOrientation;

The split orientation.

Defaults to 'vertical'.

firstView 

readonly firstView?: View | BrowserView | SplitView;

The first child view.

secondView 

readonly secondView?: View | BrowserView | SplitView;

The second child view.

splitterPosition 

readonly splitterPosition?: number;

The initial splitter position in logical pixels from the left or top edge.

splitterWidth 

readonly splitterWidth?: number;

The initial splitter width in logical pixels.