defaultkavy
b51edda800
new: $View change: Router.view => $View new: $Select, $Option, $OptGroup, $Textarea, $View add: $ query selector add: $Container.clear() .$() .$all() change: $Element.options => .setOptions remove: EventMethod function
17 lines
774 B
TypeScript
17 lines
774 B
TypeScript
import { $Container, $ContainerOptions } from "./$Container";
|
|
import { $State } from "./$State";
|
|
|
|
export interface $OptGroupOptions extends $ContainerOptions {}
|
|
export class $OptGroup extends $Container<HTMLOptGroupElement> {
|
|
constructor(options?: $OptGroupOptions) {
|
|
super('optgroup', options);
|
|
}
|
|
|
|
disabled(): boolean;
|
|
disabled(disabled: boolean | $State<boolean>): this;
|
|
disabled(disabled?: boolean | $State<boolean>) { return $.fluent(this, arguments, () => this.dom.disabled, () => $.set(this.dom, 'disabled', disabled))}
|
|
|
|
label(): string;
|
|
label(label: string | $State<string>): this;
|
|
label(label?: string | $State<string>) { return $.fluent(this, arguments, () => this.dom.label, () => $.set(this.dom, 'label', label))}
|
|
} |