Commit f3b37a1
committed
feat(form): add support for hiding fields via lime.hidden metadata
Add support for `lime.hidden` property in form schemas to hide fields
from the UI while preserving their values in form data.
Changes:
- Add `hidden?: boolean` to LimeSchemaOptions interface
- Values are still preserved in form state for all types (objects, arrays, primitives)
- Hidden fields don't participate in CSS grid layout
Usage:
```python
field = fields.Str(
metadata={
"lime": {
"hidden": True
}
}
)
```1 parent dc46693 commit f3b37a1
File tree
3 files changed
+10
-0
lines changed- etc
- src/components/form
- fields
3 files changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2559 | 2559 | | |
2560 | 2560 | | |
2561 | 2561 | | |
| 2562 | + | |
2562 | 2563 | | |
2563 | 2564 | | |
2564 | 2565 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
273 | 277 | | |
274 | 278 | | |
275 | 279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
212 | 217 | | |
213 | 218 | | |
214 | 219 | | |
| |||
0 commit comments