aboutsummaryrefslogtreecommitdiff
path: root/input/string.d.ts
AgeCommit message (Collapse)Author
2023-10-24all: fix all linter warnings from tsc and eslintShulhan
In this changes we introduce eslint as our linter for TypeScript and update our tsconfig to be more strict. The ".eslintrc.yaml" and "tsconfig.json" is taken from golang/website repository [1]. [1]: https://cs.opensource.google/go/x/website
2021-09-19input: add option "is_hint_toggled"Shulhan
If the "is_hint_toggled" is true, the hint text will be displayed by default on first render, instead of hidden. While at it, add 2px to the top margin of the hint element to make it separatable from the input element.
2021-09-18input: add method to set the input valueShulhan
The input number, select, and string now have method Set to set the current value.
2021-09-11input: add options to add custom CSS class to label and inputShulhan
The input options for string, number, and select now have two additional options: "class_label" and "class_input". The "class_label" option will add custom CSS class to the input label. The "class_input" option will add custom CSS class to the input group.
2021-09-11input: allow label to be HTMLElement instead of only stringShulhan
A label on input can be a string or another HTMLElement.
2021-09-05input: implement class WuiInputStringShulhan
The WuiInputString create an HTML input for string with predefined options. The required options are "label" and "value".