Commit Graph

11 Commits (f745fa98b717ce6815d7bb6ca5a529bd4e1ffdf3)

Author SHA1 Message Date
Florian Hotze 6d367b82b3
oh-input: Fix select with options & setting style not working (#2633)
Fixes #982.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-27 13:50:48 +02:00
Florian Hotze c8a58fb744
Update component docs (#2223)
Follow-up for #2190 and #2215.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-15 22:06:01 +01:00
Mark Herwege 340cf8646f
Add step parameter to oh-input (#1726)
When using number type in an oh-input card or oh-input-item list item, a
default step value of 1 is always respected. This leads to confusion
with users not being able to enter fractional numbers.
See [forum
post](https://community.openhab.org/t/problems-with-numerical-values-in-input-cards/134774).

This PR makes the step parameter visible, and uses a default of any
value (no step check) if no step value is provided. This is a small
breaking change, but less confusing to users.

--
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-02-22 19:27:42 +01:00
Florian Michel 1d7a3a9875
Add possibility to edit JSON variable keys in widgets (#1556)
Implements a possibility to work with nested JSON objects/arrays in widget variables. It allows to set the value of a custom key of the variable. The key can be nested in any depth to allow more complex scenarios. 

Adds a new action configuration `actionVariableKey` which allows to set the key of the object. The configuration syntax is like this:
```
actionVariableKey: name
actionVariableKey: user.name
actionVariableKey: user[0].address[1].street
actionVariableKey: [0]
actionVariableKey: [0].label
```

If you want to edit the key `user.name` but the key `user` is missing in the object, the parent hierarchy is automatically created. (Same applies if you want to add an value to an array but the array is not existing) This should make it easier for not so advanced users.

Signed-off-by: Florian Michel <florianmichel@hotmail.de>
Also-by: Yannick Schaus <github@schaus.net>
2022-12-11 12:35:11 +01:00
Mark Herwege b47ed942e6
input widgets: fix datetime-local and add datepicker time (#1525)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2022-10-13 21:48:23 +02:00
Florian Hotze 1d5b1719a9
New SIP client component & widget (#1453)
Update components docs.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Also-by: Dan Cunningham <dan@digitaldan.com>
2022-07-29 22:23:45 +02:00
hubsif b7bec07f66
Fix zero margin not applied in oh-grid-layout (#973)
Make slider label help more descriptive
Fix load issue in item-list-vlist

Signed-off-by: Hubert Nusser <hubsif@gmx.de>
2021-03-25 20:35:39 +01:00
AndyXMB 184c6dab2f
Component docs (#900)
Signed-off-by: Andrew Black <andrewm.black@outlook.com>
Also-by: Yannick Schaus <github@schaus.net>
2021-03-01 15:42:17 +01:00
Eiko Wagenknecht 8e0b392722
Add missing link to f7 input docs (#917)
Signed-off-by: Eiko Wagenknecht <eiko.wagenknecht@web.de>
2021-02-22 09:35:18 +01:00
Yannick Schaus 5e7c092f55
Add frontmatter to component reference pages (#881)
Regenerate docs.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-02-05 19:22:23 +01:00
Yannick Schaus ba4d76fe9a
Add generated component reference (#864)
Add a Node.JS script to generate or update Markdown documentation from
the definitions of components. Generate an initial set of pages.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-02-05 15:16:35 +01:00