@htmlbricks/hb-input-checkbox 0.66.8 → 0.66.10
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 +36 -0
- package/manifest.json +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
## `hb-input-checkbox` — input-checkbox
|
|
2
|
+
|
|
3
|
+
**Category:** inputs
|
|
4
|
+
**Tags:** inputs
|
|
5
|
+
|
|
6
|
+
### What it does
|
|
7
|
+
|
|
8
|
+
Checkbox or, when `schemaentry.params.type` is `switch`, a Bootstrap switch, labeled from `schemaentry.label` with a required asterisk when needed. Boolean `value` is parsed from stringified `schemaentry`; required fields must be checked to be valid. Dispatches `setVal` with `{ value, valid, id }` and can show `validationTip` under `show_validation`.
|
|
9
|
+
|
|
10
|
+
### Custom element
|
|
11
|
+
|
|
12
|
+
`hb-input-checkbox`
|
|
13
|
+
|
|
14
|
+
### Attributes (snake_case; use string values in HTML)
|
|
15
|
+
|
|
16
|
+
- `id` — optional string
|
|
17
|
+
- `style` — optional string
|
|
18
|
+
- `schemaentry` — required string (JSON: `id`, `label?`, `required?`, `value?`, `validationTip?`, `params.type` optional `"switch"`, …)
|
|
19
|
+
- `show_validation` — optional `"yes"` | `"no"`
|
|
20
|
+
|
|
21
|
+
### Events
|
|
22
|
+
|
|
23
|
+
- `setVal` — `{ value: string; valid: boolean; id: string }`
|
|
24
|
+
|
|
25
|
+
### Usage notes
|
|
26
|
+
|
|
27
|
+
CSS part: `invalid-feedback`.
|
|
28
|
+
|
|
29
|
+
### Minimal HTML example
|
|
30
|
+
|
|
31
|
+
```html
|
|
32
|
+
<hb-input-checkbox
|
|
33
|
+
schemaentry="{"id":"accept","label":"I agree","required":true}"
|
|
34
|
+
show_validation="no"
|
|
35
|
+
></hb-input-checkbox>
|
|
36
|
+
```
|
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-input-checkbox",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.10",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "Checkbox or, when `schemaentry.params.type` is `switch`, a Bootstrap switch, labeled from `schemaentry.label` with a required asterisk when needed. Boolean `value` is parsed from stringified `schemaentry`; required fields must be checked to be valid. Dispatches `setVal` with `{ value, valid, id }` and can show `validationTip` under `show_validation`.",
|
|
6
6
|
"licenses": [
|