Jonathan Frederic
3f3a7edd6a
remove on_create_widget and handle_create_widget callback
2014-01-16 10:57:15 +00:00
Jonathan Frederic
17da002a6a
remove msg.content.data.view_name and corrosponding create_view param
2014-01-16 10:57:15 +00:00
Jonathan Frederic
99d83a2ad1
move backbone sync outside the widget manager class
2014-01-16 10:57:15 +00:00
Jonathan Frederic
5dbffa5287
_model_types, _view_types, _models - and document what keys and values are
2014-01-16 10:57:15 +00:00
Jonathan Frederic
e383594d04
renamed: basic_widgets.js -> init.js
...
renamed: init.js -> widget.js
2014-01-16 10:57:14 +00:00
Jonathan Frederic
5a3665d9ed
s/widget.js/init.js
2014-01-16 10:57:14 +00:00
Jonathan Frederic
5b388df615
Added callbacks method to view
2014-01-16 10:57:14 +00:00
Jonathan Frederic
5ced2816e7
Removed sync_method parameter from backbone msg spec
2014-01-16 10:57:14 +00:00
Jonathan Frederic
441a3e3ca6
Updated require.js references
2014-01-16 10:57:14 +00:00
Jonathan Frederic
ee522adc18
Renamed widget js files
2014-01-16 10:57:14 +00:00
Jonathan Frederic
691db01e5e
Missing view argument when recursively calling widgetmanager.callbacks(view)
2014-01-16 10:57:14 +00:00
Jonathan Frederic
babd5c44ba
Completely remove cell from model and view.
2014-01-16 10:57:13 +00:00
Jonathan Frederic
9e43807579
Updated comm id comments in view to model id
2014-01-16 10:57:13 +00:00
Jonathan Frederic
3329f875f3
s/comm_id/model_id (left over from before)
2014-01-16 10:57:13 +00:00
Jason Grout
7cbda99b0d
Add widget view options in creating child views
2014-01-16 10:57:13 +00:00
Jonathan Frederic
926c93eb84
Fixed indentation in widgetmanager.js
2014-01-16 10:57:12 +00:00
Jonathan Frederic
35a536f3b8
Re-decoupled comm_id from widget models
2014-01-16 10:57:12 +00:00
Jonathan Frederic
8732761524
Added update_children
pattern to remaining parent widgets
2014-01-16 10:57:12 +00:00
Jonathan Frederic
2211abd28d
Converted tabs to spaces
2014-01-16 10:57:11 +00:00
Jason Grout
44e2043afe
Live updates for children automatically change container views.
...
Since traitlets does not trigger events when list elements are changed, these changes are triggered only when the entire children element is reassigned.
2014-01-16 10:57:11 +00:00
Jason Grout
b52043b4f7
Get the add/remove css classes working
2014-01-16 10:57:11 +00:00
Jason Grout
a8c8c2a5fd
General cleanup of base.js, including indentation fixes and adding view callbacks to the save options dictionary.
2014-01-16 10:57:11 +00:00
Jason Grout
00472333ec
log the error stack for a kernel javascript error message
2014-01-16 10:57:11 +00:00
Jason Grout
7810c78aea
Fix visible attribute for the very first render
2014-01-16 10:57:11 +00:00
Jason Grout
9b1a0d70a2
fix a handle_status handler
2014-01-16 10:57:11 +00:00
Jason Grout
1bf8da0734
Note todos for widgets
2014-01-16 10:57:10 +00:00
Jason Grout
38f0135522
Delete the snapshot message handler
2014-01-16 10:57:10 +00:00
Jason Grout
9a4c5957c3
Store views in the models and store child views in the views
2014-01-16 10:57:10 +00:00
Jason Grout
7431fa37dd
Make updates more granular for widgets
2014-01-16 10:57:10 +00:00
Jason Grout
641a5af70f
Move all references to cells to the view objects.
2014-01-16 10:57:10 +00:00
Jason Grout
45206783c2
Delete unnecessary check for comm object
2014-01-16 10:57:10 +00:00
Jason Grout
41170f7471
Change accordion to use a children attribute
2014-01-16 10:57:10 +00:00
Jason Grout
18beaff887
Remove unused code and debugging statements
2014-01-16 10:57:10 +00:00
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.
2014-01-16 10:57:10 +00:00
Jason Grout
ad1e23bfc2
Intermediate changes to javascript side of backbone widgets
2014-01-16 10:57:10 +00:00
Jonathan Frederic
3361826b5a
Added require.js shims for underscore and backbone
...
This is necessary since underscore and backbone are no longer AMD
modules.
2014-01-16 10:57:10 +00:00
Jonathan Frederic
b588a56f76
Moved touch logic out of model into view.
...
View now updates using backbone events.
2014-01-16 10:57:10 +00:00
Jonathan Frederic
a2c951d9b0
s/display/created for display_view stuff
2014-01-16 10:57:09 +00:00
Jonathan Frederic
d4b6823a49
Removed unused that from widget manager
2014-01-16 10:57:09 +00:00
Jonathan Frederic
73380ca442
Fixed nonregistered model bug in wiget manager
2014-01-16 10:57:09 +00:00
Jonathan Frederic
3c866ea412
Made widget model state update function public
2014-01-16 10:57:09 +00:00
Jonathan Frederic
8ceb29796a
Made display_view a public method.
2014-01-16 10:57:09 +00:00
Jonathan Frederic
19e9cee437
Fix, require.js needs return of widget manager for other widgets
2014-01-16 10:57:09 +00:00
Jonathan Frederic
d7c0498b13
renamed: widget.js -> widgetmanager.js
2014-01-16 10:57:09 +00:00
Jonathan Frederic
3d7557b740
Moved base widget model and view into widgets/base.js
2014-01-16 10:57:09 +00:00
Jonathan Frederic
3a936676dc
Removed comm dependency of widget model and view
2014-01-16 10:57:09 +00:00
Jonathan Frederic
8120778e5a
Fixed some spacing in widget.js
2014-01-16 10:57:09 +00:00
Jonathan Frederic
5678617d8f
Fixed context of onclick callbacks selection widget views
2014-01-16 10:57:09 +00:00
Jonathan Frederic
4e3b2b3e94
jslint /widgets
2014-01-16 10:57:08 +00:00
Jonathan Frederic
3bc9d12eb8
jshint widget.js
2014-01-16 10:57:08 +00:00