mx-ui-components
Version:
mobius ui library
52 lines (51 loc) • 1.61 kB
TypeScript
import BaseComponent from "../Counter/BaseComponent";
declare class ComplexCards extends BaseComponent {
private props;
private data;
constructor();
static get observedAttributes(): string[];
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
connectedCallback(): void;
addPropsToElement(data: any, parent: any): any;
createAccordion(card: any, defaultOpen?: boolean): {
type: string;
id: string;
styles: string;
version: string;
children: {
type: string;
id: string;
version: string;
styles: string;
children: ({
type: string;
id: string;
bindings: {
state: string;
actions: {
click: string[];
hover: never[];
};
};
styles: string;
version: string;
children: any[];
props?: undefined;
} | {
type: string;
version: string;
styles: string;
props: {
defaultOpen: boolean;
};
children: never[];
id?: undefined;
bindings?: undefined;
})[];
}[];
};
toggleChilds(element: HTMLElement): void;
renderTree(data: any, parent: HTMLElement, defaultOpen?: boolean): void;
render(): void;
}
export default ComplexCards;