You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- import HTMLElement from '../html-element/HTMLElement';
- import IHTMLElement from '../html-element/IHTMLElement';
- import IHTMLFormElement from '../html-form-element/IHTMLFormElement';
- import IHTMLLabelElement from './IHTMLLabelElement';
- /**
- * HTML Label Element.
- *
- * Reference:
- * https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement.
- */
- export default class HTMLLabelElement extends HTMLElement implements IHTMLLabelElement {
- /**
- * Returns a string containing the ID of the labeled control. This reflects the "for" attribute.
- *
- * @returns ID of the labeled control.
- */
- get htmlFor(): string;
- /**
- * Sets a string containing the ID of the labeled control. This reflects the "for" attribute.
- *
- * @param htmlFor ID of the labeled control.
- */
- set htmlFor(htmlFor: string);
- /**
- * Returns an HTML element representing the control with which the label is associated.
- *
- * @returns Control element.
- */
- get control(): IHTMLElement;
- /**
- * Returns the parent form element.
- *
- * @returns Form.
- */
- get form(): IHTMLFormElement;
- /**
- * Clones a node.
- *
- * @override
- * @param [deep=false] "true" to clone deep.
- * @returns Cloned node.
- */
- cloneNode(deep?: boolean): IHTMLLabelElement;
- }
|