gd-bs
Version:
Bootstrap JavaScript, TypeScript and Web Components library.
33 lines (26 loc) • 709 B
TypeScript
/**
* Base
*/
export interface IBase<IProps = IBaseProps> {
/** Internal method to configure the parent element. */
configureParent(): HTMLElement;
/** The component HTML element */
el: HTMLElement;
/** Hides the component. */
hide(): void;
/** The component properties */
props: IProps;
/** Shows the component. */
show(): void;
}
/**
* Base Properties
*/
export interface IBaseProps<IBaseObj = any> {
/** Assigns the object to the input parameter. */
assignTo?: (obj: IBaseObj) => void;
/** Custom class names. */
className?: string;
/** The element to render the component to. */
el?: HTMLElement;
}