UNPKG

npm-allakando-publish

Version:

Allakando's web component library

49 lines (48 loc) 1.98 kB
export interface OpenDialogOptions { /** If true the window will have no built-in header. */ noheader?: boolean; /** If true the window will have no built-in footer. */ nofooter?: boolean; /** If true the window will have no close button. */ noclose?: boolean; /** Determines if the window has a backdrop, and if the backdrop closes the window when clicked. */ modality?: "none" | "clickable" | "disabled"; /** Determines if the dialog should size itself to fit its content. */ fluid?: boolean; /** The title for the modal header. */ title?: string; /** The subtitle for the modal header. */ subtitle?: string; /** Stylesheets for the dialog. */ style?: string; /** Should the dialog be scrollable? If false then the page will scroll. */ scrollable?: boolean; /** Should the dialog be centered in the viewport? */ center?: boolean; /** The main content of the window */ body?: string | HTMLElement | ((...args: any[]) => HTMLElement); /** A custom header for the window */ header?: string | HTMLElement | ((...args: any[]) => HTMLElement); /** The footer content for the window */ footer?: string | HTMLElement | ((...args: any[]) => HTMLElement); } export interface StyleInjectionOptions { /** Styles for typography */ typography?: boolean; /** Styles for form elements */ forms?: boolean; /** Styles for table elements */ tables?: boolean; /** Styles for content containers */ containers?: boolean; /** Styles for aria-busy="true" */ loading?: boolean; /** Styles for data-tooltip="true" */ tooltips?: boolean; /** Styles for <progess> elements */ progress?: boolean; /** Styles for <ul> elements inside of <nav> elements to help build navigation menus more easily */ navigation?: boolean; /** Styles for ako-mob-nav elements. It will work as wrapper around the ako-mob-nav items */ mobnavbar?: boolean; }