UNPKG

@finos/legend-lego

Version:
45 lines 1.56 kB
/** * Copyright (c) 2020-present, Goldman Sachs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ export declare abstract class TabState { readonly uuid: string; isPinned: boolean; constructor(); abstract get label(): string; get description(): string | undefined; setPinned(val: boolean): void; match(tab: TabState): boolean; onOpen(): void; onClose(): void; } export declare abstract class TabManagerState { currentTab?: TabState | undefined; tabs: TabState[]; constructor(); setCurrentTab(val: TabState | undefined): void; closeAllOtherTabs(tab: TabState): void; closeAllTabs(): void; swapTabs(tab1: TabState, tab2: TabState): void; /** * The unique drag and drop type * See https://react-dnd.github.io/react-dnd/docs/overview#items-and-types */ abstract get dndType(): string; openTab(tab: TabState): void; closeTab(tab: TabState): void; pinTab(tab: TabState): void; unpinTab(tab: TabState): void; } //# sourceMappingURL=TabManagerState.d.ts.map