You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
462 B
15 lines
462 B
import os
|
|
|
|
from ..widget import Widget
|
|
from IPython.utils.traitlets import Unicode, List, Bool
|
|
from IPython.utils.javascript import display_all_js
|
|
|
|
class SelectionWidget(Widget):
|
|
target_name = Unicode('SelectionWidgetModel')
|
|
default_view_name = Unicode('DropdownView')
|
|
_keys = ['value', 'values', 'disabled']
|
|
|
|
value = Unicode()
|
|
values = List() # List of values the user can select
|
|
disabled = Bool(False) # Enable or disable user changes
|
|
|