defaultkavy
8e37f65f4f
fix: Array.detype() return empty array. new: RouteRecord, Route with path resolve function. change: $ElementManager rename to $NodeManager. add: $Node.hide() and $Node.show(). fix: $Node parent undefined. add: create element with 'label', 'input'. new: $.state() to binding data in element. new: $Form, $Button. fix: Router resolve path id bug
14 lines
539 B
TypeScript
14 lines
539 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 | undefined) { return $.fluent(this, arguments, () => this.dom.htmlFor, () => {if (name) this.dom.htmlFor = name}) }
|
|
|
|
get form() { return this.dom.form }
|
|
get control() { return this.dom.control }
|
|
} |