This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Commit 82387c6
[[TreeView Widget]] Mobile Support Enhancements (#7154)
* Adjust row height to reflect font size changes
* Add charsToTrimFromKey property - this allows custom key sort display by removing a set number of characters from each key when rendering the widget. The array needs to be configured with characters prepended to each key that will sort in the desired order.
* Add hilitedElementIsFolded property - this can be used to adjust the fold state of the selected element.
* Add scroller support and custom text height - added `formattedHeight` property and `scroll` property (also includes `vScroll`) and `formattedHeightChanged` message
* Add `textHeight` property - this allows for changing the default height of a row to a custom value instead of using what would be calculated.
* Clear hilitedElement bug fix - If no element was selected, setting the hilitedElement to empty would throw an error. Added an additional test to ensure that the widget did
not attempt to unselect and empty path.
* Add vScrollbar property
* Add showHover property - this allows the hover shading to be disabled. This is useful on mobile where the hover is not something that makes sense in that UI.
* Save `alternate row backgrounds` property which was not being saved/restored.
* Add iconHeight property - allows the setting of the size of the icons displayed in the widget.
* Handle font changes and improve trimming logic
- When the font size changes, re-evaluate the width of the ellipsis.
- When the font name changes, re-evaluate the width of the ellipsis.
- When in readOnly mode, only save space for one icon on the right.
- If full string displayed, remove ellipsis length from the returned width.
- `displayWidth` was reporting the incorrect width when a string was being trimmed. Keep track of the previous width to return a proper value.
- Prevent the last character (key/value) from being turned into an ellipsis.
- Remove padding from ellipsis width calculation. Only add padding in when looking at a key where a value also exists. No need to save space for an ellipsis and padding otherwise.
* Save `show border` property
* Add `showValues` property1 parent 2e8db35 commit 82387c6
5 files changed
Lines changed: 508 additions & 91 deletions
File tree
- extensions/widgets/treeview
- notes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments