@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
60 lines • 1.2 kB
TypeScript
export class TabbedView extends View<HTMLElement> {
/**
*
* @param {List<TabDefinition>} tabs
* @param {TabDefinition} [active]
*/
constructor({ tabs }: List<TabDefinition>);
/**
*
* @type {List<TabDefinition>}
*/
model: List<TabDefinition>;
el: HTMLDivElement;
__panelContainer: EmptyView;
__toggleContainer: EmptyView;
/**
*
* @private
*/
private __updateActivateTab;
/**
*
* @param {TabDefinition} definition
* @private
*/
private __handleTabAdded;
/**
*
* @param {TabDefinition} definition
* @private
*/
private __handleTabRemoved;
}
import View from "../View.js";
declare class TabDefinition {
/**
*
* @type {ObservedBoolean}
*/
enabled: ObservedBoolean;
/**
*
* @type {ObservedBoolean}
*/
active: ObservedBoolean;
/**
*
* @type {View}
*/
toggle: View;
/**
*
* @type {View}
*/
panel: View;
}
import EmptyView from "../elements/EmptyView.js";
import ObservedBoolean from "../../core/model/ObservedBoolean.js";
export {};
//# sourceMappingURL=TabbedView.d.ts.map