@dodona/papyros 0.2.0 → 0.2.3
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/README.md +15 -13
- package/dist/Library.js +1 -1
- package/dist/util/Rendering.d.ts +2 -1
- package/package.json +1 -1
package/dist/util/Rendering.d.ts
CHANGED
|
@@ -74,7 +74,8 @@ export declare function renderButton(options: ButtonOptions): string;
|
|
|
74
74
|
* @param {T} selected The initially selected element in the list, if any
|
|
75
75
|
* @return {string} The string representation of the select options
|
|
76
76
|
*/
|
|
77
|
-
export declare function
|
|
77
|
+
export declare function renderSelectOptions<T>(options: Array<T>, optionText: (option: T) => string, selected?: T): string;
|
|
78
|
+
export declare function renderLabel(labelText: string | undefined, forElement: string): string;
|
|
78
79
|
/**
|
|
79
80
|
* Constructs an HTML select element
|
|
80
81
|
* @param {string} selectId The HTML id for the element
|