-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
29 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,40 @@ | ||
import { LitElement } from "lit"; | ||
import { HomeAssistant, LovelaceCardConfig, LovelaceCardEditor } from "custom-card-helpers"; | ||
import { LitElement, PropertyValueMap } from "lit"; | ||
import { HomeAssistant, LovelaceCard, LovelaceCardConfig, LovelaceCardEditor } from "custom-card-helpers"; | ||
import "./tabbed-card-editor"; | ||
interface TabbedCardConfig extends LovelaceCardConfig { | ||
options: {}; | ||
tabs: Tab[]; | ||
} | ||
interface Tab { | ||
name: string; | ||
card: LovelaceCardConfig; | ||
} | ||
export declare class TabbedCard extends LitElement { | ||
static styles: import("lit").CSSResult[]; | ||
hass: HomeAssistant; | ||
protected selectedTabIndex: number; | ||
private _config; | ||
private _tabs; | ||
static getConfigElement(): Promise<LovelaceCardEditor>; | ||
static getStubConfig(): { | ||
entity: string; | ||
options: {}; | ||
tabs: { | ||
name: string; | ||
card: { | ||
type: string; | ||
entity: string; | ||
}; | ||
}[]; | ||
}; | ||
hass: HomeAssistant; | ||
private config; | ||
setConfig(config: LovelaceCardConfig): void; | ||
private activeContentElement; | ||
private contentElements; | ||
private tabBarElement; | ||
private tabBar; | ||
private isActiveTab; | ||
private tabElement; | ||
firstUpdated(): void; | ||
setConfig(config: TabbedCardConfig): void; | ||
protected willUpdate(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void; | ||
_createTabs(config: TabbedCardConfig): Promise<void>; | ||
_createCard(cardConfig: LovelaceCardConfig): Promise<any>; | ||
_rebuildCard(cardElement: LovelaceCard, cardConfig: LovelaceCardConfig): Promise<void>; | ||
render(): import("lit").TemplateResult<1>; | ||
} | ||
declare global { | ||
interface HTMLElementTagNameMap { | ||
"tabbed-card": TabbedCard; | ||
} | ||
} | ||
export {}; |