flexlayout-react
Version:
A multi-tab docking layout manager
37 lines (36 loc) • 1.41 kB
TypeScript
import { IDraggable } from "./IDraggable";
import { IJsonTabNode } from "./IJsonModel";
import { Node } from "./Node";
export declare class TabNode extends Node implements IDraggable {
static readonly TYPE = "tab";
getName(): string;
isHoisted(): boolean;
getHelpText(): string | undefined;
getComponent(): string | undefined;
/**
* Returns the config attribute that can be used to store node specific data that
* WILL be saved to the json. The config attribute should be changed via the action Actions.updateNodeAttributes rather
* than directly, for example:
* this.state.model.doAction(
* FlexLayout.Actions.updateNodeAttributes(node.getId(), {config:myConfigObject}));
*/
getConfig(): any;
/**
* Returns an object that can be used to store transient node specific data that will
* NOT be saved in the json.
*/
getExtraData(): Record<string, any>;
isPoppedOut(): boolean;
isSelected(): boolean;
getIcon(): string | undefined;
isEnableClose(): boolean;
getCloseType(): number;
isEnablePopout(): boolean;
isEnableDrag(): boolean;
isEnableRename(): boolean;
getClassName(): string | undefined;
getContentClassName(): string | undefined;
getTabSetClassName(): string | undefined;
isEnableRenderOnDemand(): boolean;
toJson(): IJsonTabNode;
}