Jason Grout
18beaff887
Remove unused code and debugging statements
12 years ago
Jason Grout
72f7d2fe09
Remove the automatic _children_attr and _children_lists_attr.
...
When serializing, any Widget object is encoded as its comm_id. The view should know how to deal with the attribute, and should know that the attribute is a comm_id.
12 years ago
Jason Grout
ad1e23bfc2
Intermediate changes to javascript side of backbone widgets
12 years ago
Jonathan Frederic
3361826b5a
Added require.js shims for underscore and backbone
...
This is necessary since underscore and backbone are no longer AMD
modules.
12 years ago
Jonathan Frederic
b588a56f76
Moved touch logic out of model into view.
...
View now updates using backbone events.
12 years ago
Jonathan Frederic
a2c951d9b0
s/display/created for display_view stuff
12 years ago
Jonathan Frederic
3c866ea412
Made widget model state update function public
12 years ago
Jonathan Frederic
8ceb29796a
Made display_view a public method.
12 years ago
Jonathan Frederic
19e9cee437
Fix, require.js needs return of widget manager for other widgets
12 years ago
Jonathan Frederic
d7c0498b13
renamed: widget.js -> widgetmanager.js
12 years ago
Jonathan Frederic
3d7557b740
Moved base widget model and view into widgets/base.js
12 years ago
Jonathan Frederic
5678617d8f
Fixed context of onclick callbacks selection widget views
12 years ago
Jonathan Frederic
4e3b2b3e94
jslint /widgets
12 years ago
Jonathan Frederic
e9bf942375
Fixed backbone event handling for accordion view
12 years ago
Jonathan Frederic
1b02e8f607
Add ImageWidget
12 years ago
Jonathan Frederic
186e756da9
Remove uneccessary lines in String.js
12 years ago
Jonathan Frederic
a6e5ec942c
Added LatexView
12 years ago
Jonathan Frederic
b656f34c48
s/LabelView/HTMLView
12 years ago
Jonathan Frederic
32a8d43afc
- ModalView can now be docked and undocked
...
- Clicking on a ModalView will bring it to the front
12 years ago
Jonathan Frederic
d69e957b9a
Added support for disabled flag to button widget.
12 years ago
Jonathan Frederic
dd31af4462
Do not vertically center modal
12 years ago
Jonathan Frederic
515f0d1b0f
Fixed modal centering code
12 years ago
Jonathan Frederic
c31ad5cf78
Added custom selector logic to modal view
12 years ago
Jonathan Frederic
1fb4340503
Moved flexible box model attrs out of Container and Modal js
...
into a common function
12 years ago
Jonathan Frederic
8b08e1c53c
Center modal view on show
12 years ago
Jonathan Frederic
f9f84fc076
Removed max height from widget modal body
12 years ago
Jonathan Frederic
61bfddbd17
Fixed body container height not stretching to fill remainer of height
12 years ago
Jonathan Frederic
4e1e091648
Added ModalView
12 years ago
Jonathan Frederic
4333c84907
Fix scroll_to_bottom
12 years ago
Jonathan Frederic
4f663d896d
Made scroll to bottom use msgs
...
allow multiple msg handlers
added send to view to automatically hookup callbacks
changed send signature to optionally accept a cell to connect callbacks
12 years ago
Jonathan Frederic
cc96589afc
Changed on_submit to use custom messages instead of stateful communcation
12 years ago
Jonathan Frederic
10002f5a81
Changed button to use custom messages instead of state to communicate events.
12 years ago
Jonathan Frederic
873d1d231e
Make sure DOM element ids start with alphabetic characters, not numeric.
12 years ago
Jonathan Frederic
00f72487c5
Use setElement to set the view's element properly.
12 years ago
Jonathan Frederic
0cd4226fde
Fixed typo in container construction.
12 years ago
Jonathan Frederic
f16f1d6537
Make sure backbone events fire.
...
If $el is set to something else, make sure all the backbone machinery
knows about the new DOM element.
12 years ago
Jonathan Frederic
d795654251
Add scroll_to_bottom method for TextAreaView (StringWidget).
12 years ago
Jonathan Frederic
9019b639d1
Fixed a bug that didn't allow callbacks to set a property
...
on the widget that triggered the callback.
12 years ago
Jonathan Frederic
0d7428a903
Added TextBox submit event
12 years ago
Jonathan Frederic
eaea930667
Added ListBoxView
12 years ago
Jonathan Frederic
1131100d21
Changed require.js load calls to allow require.js to pass
...
the import module handles around.
12 years ago
Jonathan Frederic
215060e8e8
Added selected_index support to accordion view.
12 years ago
Jonathan Frederic
a9faa50329
Use regular expressions when fixing button-like captions
12 years ago
Jonathan Frederic
6c860e32c0
Added support for multiple lines in button-like widgets
12 years ago
Jonathan Frederic
59e7a04723
Added support for multiple spaces in a row
...
also added button height fix for standard buttons without a caption
12 years ago
Jonathan Frederic
ce53644d54
Added standard IPY JS header to widget JS files.
12 years ago
Jonathan Frederic
b9a274a425
Fixed indentation
12 years ago
Jonathan Frederic
e6aa364976
Better fix for empty dropdown button alignment
...
Now an character is inserted and bootstrap is left alone to deal with alignment.
12 years ago
Jonathan Frederic
8502b2c182
Remove init_widget_js, use require.js for everything
...
Updated examples
Fixed bug with message throttling
12 years ago
Jonathan Frederic
3390f64dc2
Added flex properties to container.
...
Also replaced underscores in flex align properties with dashes.
12 years ago