Add SplitViewsBase class with event listeners and public API

This commit is contained in:
Mauro Balades 2024-08-05 19:19:49 +02:00
parent 6b1bf7b7e5
commit d4e80c2719
4 changed files with 63 additions and 4 deletions

View file

@ -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[];
};