##// END OF EJS Templates
Add selection widget
Add selection widget

File last commit:

r14242:f62703e5
r14242:f62703e5
Show More
widget.py
14 lines | 462 B | text/x-python | PythonLexer
Jonathan Frederic
Add selection widget
r14242 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