defaultkavy
b3f28dbf86
change: Router.open(), .replace() .back(), .events change to static add: $.open(), $.replace(), $.back() add: $.html() convert html string to $Element update: $State support output format update: $Util.from() convert children node to $Element change: $Node.parent change to getter change: using $StateArgument<T> new: $SVGElement, $HTMLElement new: $AsyncNode add: $Image.load()
19 lines
818 B
TypeScript
19 lines
818 B
TypeScript
import { $Container, $ContainerOptions } from "./$Container";
|
|
export interface $DialogOptions extends $ContainerOptions {}
|
|
export class $Dialog extends $Container<HTMLDialogElement> {
|
|
constructor(options?: $DialogOptions) {
|
|
super('dialog', options);
|
|
}
|
|
|
|
open(): boolean;
|
|
open(open?: boolean): this;
|
|
open(open?: boolean) { return $.fluent(this, arguments, () => this.dom.open, () => $.set(this.dom, 'open', open)) }
|
|
|
|
returnValue(): string;
|
|
returnValue(returnValue?: string): this;
|
|
returnValue(returnValue?: string) { return $.fluent(this, arguments, () => this.dom.returnValue, () => $.set(this.dom, 'returnValue', returnValue)) }
|
|
|
|
close() { this.dom.close(); return this; }
|
|
show() { this.dom.show(); return this; }
|
|
showModal() { this.dom.showModal(); return this; }
|
|
} |