feat: DH-19683: multi-select combo box component in deephaven.ui#1349
feat: DH-19683: multi-select combo box component in deephaven.ui#1349jnumainville wants to merge 15 commits into
Conversation
|
ui docs preview (Available for 14 days) |
| The `default_selected_key` is useful for simpler scenarios where you don't need to control the state externally. The `selected_key` is used for scenarios where the state should be managed by the parent component, providing control and flexibility over the selection of the combo box. | ||
| `default_selected_keys` is useful for simpler scenarios where you don't need to control the state externally. `selected_keys` is used for scenarios where the state should be managed by the parent component, providing control and flexibility over the selection of the combo box. | ||
|
|
||
| <!-- prettier-ignore --> |
There was a problem hiding this comment.
not sure why we need the prettier ignore here? is formatting messing with the note?
There was a problem hiding this comment.
Yes. It keeps collapsing any > [!NOTE] into one line on save.
|
@jnumainville As mentioned in our 1:1, I don't like how this is currently a breaking change. Looping @dsmmcken for some input.
Thoughts? |
|
My preference is 1, but If you've given it thought then I back your conclusion of 4. |
|
@jnumainville I think you concluded 4 would be more elegant as well. Unless you make a case for 1, I'd like to go with 4. Also, how big of tables have you tested this with? |
|
I prefer 4 as well. The implementation here is unpleasant, specifically the deprecation logic, and I think it's a case where if the deprecation logic is tricky to implement it's tricky to follow (when do I have a |
Add
"multiple"selection_modeoption forcombo_box. Depends on deephaven/web-client-ui#2685, so won't pass or merge until that is merged.BREAKING CHANGE: The
selected_keyanddefault_selected_keyprops are deprecated. Due to this, the default value of the argument passed into theon_changeandon_selection_changecallbacks is aSelectioninstead of aKey. Ifselected_keyordefault_selected_keyare passed in tocombo_boxthe callbacks will still pass in aKeyuntil the deprecated props are removed, but in all other cases the callbacks will pass in aSelection.