Skip to content

ui.picker Implementation with constant data provided from server #292

@mofojed

Description

@mofojed

Implement spec defined in #247 for ui.picker with constant data. Specifically, the examples where you are providing a number of constant items, e.g.

from deephaven import ui

def PickerExample():
  # simple picker that takes picker options directly and is controlled
  option, set_option = ui.use_state("Option 2")
  
  picker2 = ui.picker(
      "Option 1",
      "Option 2",
      "Option 3",
      "Option 4",
      selected_key=option,
      on_selection_change=set_option
  )

p = PickerExample()

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions