defaultkavy
658df2d8e6
new: $Image enhance: $ parameter accept null and undefined new: $Dialog new: $Canvas add: $.rem() fix: Router resolve path error with param resolve fix: $Container.insert() render error with undefined child change: Route builder function parameter with one object enhance: $Node event listener with event type add: $Node.inDOM()
14 lines
535 B
TypeScript
14 lines
535 B
TypeScript
import { $Container, $ContainerOptions } from "./$Container";
|
|
export interface $LabelOptions extends $ContainerOptions {}
|
|
export class $Label extends $Container<HTMLLabelElement> {
|
|
constructor(options?: $LabelOptions) {
|
|
super('label', options);
|
|
}
|
|
|
|
for(): string;
|
|
for(name?: string): this;
|
|
for(name?: string) { return $.fluent(this, arguments, () => this.dom.htmlFor, () => { $.set(this.dom, 'htmlFor', name, 'for')}) }
|
|
|
|
get form() { return this.dom.form }
|
|
get control() { return this.dom.control }
|
|
} |