UNPKG

837 BTypeScriptView Raw
1/**
2 * A namespace for node styling.
3 */
4export declare namespace Styling {
5 /**
6 * Style a node and its child elements with the default tag names.
7 *
8 * @param node - The base node.
9 *
10 * @param className - The optional CSS class to add to styled nodes.
11 */
12 function styleNode(node: HTMLElement, className?: string): void;
13 /**
14 * Style a node and its elements that have a given tag name.
15 *
16 * @param node - The base node.
17 *
18 * @param tagName - The html tag name to style.
19 *
20 * @param className - The optional CSS class to add to styled nodes.
21 */
22 function styleNodeByTag(node: HTMLElement, tagName: string, className?: string): void;
23 /**
24 * Wrap a select node.
25 */
26 function wrapSelect(node: HTMLSelectElement, multiple?: boolean): HTMLElement;
27}