UNPKG

@conectate/ct-dialog

Version:

HTML dialog made with Web Components

29 lines (28 loc) 932 B
import "@conectate/ct-card"; import "@conectate/ct-spinner"; import "@conectate/lit-if"; import { CtLit } from "@conectate/ct-lit"; import { CtDialog } from "./ct-dialog.js"; export declare class CtLoading extends CtLit { ttl: string; dialog: CtDialog; render(): import("lit").TemplateResult<1>; static get properties(): { ttl: { type: StringConstructor; }; }; } declare global { interface HTMLElementTagNameMap { "ct-loading": CtLoading; } } /** * This shows a dialogue box with a spinner and the text "loading" * @param {string} [id] - If one wants to set an explicit ID to the dialog, otherwise one will automatically be generated * @param {string} [str] - String to show in loading */ export declare function showCtLoading(id?: string, str?: string): CtDialog; export declare function showCtLoading2(id?: string, str?: string): CtLoading; export { CtDialog };