mirror of
https://github.com/zen-browser/components.git
synced 2025-07-09 01:05:28 +02:00
Add SplitViewsBase class with event listeners and public API
This commit is contained in:
parent
6b1bf7b7e5
commit
d4e80c2719
4 changed files with 63 additions and 4 deletions
|
@ -1,14 +1,15 @@
|
|||
import { Config } from "../common/config";
|
||||
|
||||
type SplitType = 'horizontal' | 'vertical' | 'grid';
|
||||
export type SplitType = 'horizontal' | 'vertical' | 'grid';
|
||||
|
||||
interface Config {
|
||||
export interface SplitViewConfig extends Config {
|
||||
keyIndicator: string; // e.g. "split-tab='true'"
|
||||
defaultSplitView: SplitType;
|
||||
};
|
||||
|
||||
type Tab = any;
|
||||
export type Tab = HTMLDivElement;
|
||||
|
||||
interface SplitView {
|
||||
export interface SplitView {
|
||||
type: SplitType;
|
||||
tabs: Tab[];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue