MinRK
3e1f2e22f8
Make `SelectionWidget.values` a dict
...
rename 'labels' and '_value' to 'value_names' and 'value_name'.
To specify a mapping of value names and values, use a dict.
If you specify `values=[list]`, then an OrderedDict will be used.
Assignment after construction only supports a dict.
12 years ago
Jonathan Frederic
75b148d40b
Renamed widgets...
...
TextWidget, TextareaWidget, CheckboxWidget, and SelectWidget
12 years ago
MinRK
dd2f4a25aa
quick review pass on javascript
12 years ago
Jonathan Frederic
91e82218a8
Changed selection widget API to use labels list
...
for mapping custom str reprs to items in the selection list
12 years ago
Jonathan Frederic
9e643f5692
Support multiple types in selection widget.
12 years ago
Jonathan Frederic
f06a0a7d5e
Fixed a couple more context typos
12 years ago
Jonathan Frederic
629d65da89
Fixed context errors and a couple of typos to get the tests working again
12 years ago
Jonathan Frederic
99f3f5155e
Fixed some typos related to _.each loops
12 years ago
Jonathan Frederic
08e40697de
Removed for () loops where necessary. Replaced with _.each
12 years ago
Jonathan Frederic
35a02a0436
Replace .html with .text everywhere possible
12 years ago
Jonathan Frederic
e17200a533
Widget require.js fix
...
The WidgetManager namespace is passed around instead of a
widget_manager instance...
12 years ago
Jonathan Frederic
7cc6692fc4
Make dropdown view DOM swap elements on update.
12 years ago
Jonathan Frederic
bd3ba3328c
Added PEP8 style comments to all of the JS code.
12 years ago
Jonathan Frederic
c1c7bb7563
Everyone uses one model
12 years ago
Jonathan Frederic
d103c682c5
Many checks off the todo list, test fixes
12 years ago
Jonathan Frederic
f6de685d9f
Use .apply for calling base with not proto-type.
...
See codecell for example.
12 years ago
Jonathan Frederic
643516f6f9
remove .html('');
12 years ago
Jonathan Frederic
5b5325507f
add locks to update everywhere by using options to pass this
...
(and check for this)
12 years ago
Jonathan Frederic
c4edfdc828
comment model.set, so we know that it triggers update on other views
12 years ago
Jonathan Frederic
ccbfcbc159
make JS update comment more descriptive (english)
12 years ago
Jonathan Frederic
a6fac70e03
s/BaseWidgetView/WidgetView and s/WidgetView/DOMWidgetView
12 years ago
Jonathan Frederic
441a3e3ca6
Updated require.js references
12 years ago
Jonathan Frederic
ee522adc18
Renamed widget js files
12 years ago