##// END OF EJS Templates
Added toggle button view
Added toggle button view

File last commit:

r14260:3ca03407
r14262:524f98d2
Show More
selection.py
11 lines | 395 B | text/x-python | PythonLexer
from base import Widget
from IPython.utils.traitlets import Unicode, List, Bool
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