@dodona/papyros 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Library.js +1 -1
- package/dist/util/Rendering.d.ts +7 -0
- package/package.json +1 -1
package/dist/util/Rendering.d.ts
CHANGED
|
@@ -75,6 +75,13 @@ export declare function renderButton(options: ButtonOptions): string;
|
|
|
75
75
|
* @return {string} The string representation of the select options
|
|
76
76
|
*/
|
|
77
77
|
export declare function renderSelectOptions<T>(options: Array<T>, optionText: (option: T) => string, selected?: T): string;
|
|
78
|
+
/**
|
|
79
|
+
* Build a string representation of an HTML label element
|
|
80
|
+
* @param {string} labelText Optional text to display in a label
|
|
81
|
+
* If not provided, no label is created
|
|
82
|
+
* @param {string} forElement The id of the element this label is for
|
|
83
|
+
* @return {string} The HTML string of the label
|
|
84
|
+
*/
|
|
78
85
|
export declare function renderLabel(labelText: string | undefined, forElement: string): string;
|
|
79
86
|
/**
|
|
80
87
|
* Constructs an HTML select element
|