Jonathan Frederic
02db32fe9a
Fix typo, static msg content c&p from button widget view.
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
10002f5a81
Changed button to use custom messages instead of state to communicate events.
12 years ago
Jonathan Frederic
c299022cc7
Changed add_class and remove_class to use messages instead of stateful communication
12 years ago
Jonathan Frederic
cb0ac9c06b
Remove some empty space
12 years ago
Jonathan Frederic
bcc2ce15a3
Cleaned up _make_callbacks method of widget model class
12 years ago
Jonathan Frederic
96c6db3c1d
Fixed typo in widget model code causing notebook to not load
12 years ago
Jonathan Frederic
c0ff518107
Added support for custom widget msgs
12 years ago
Jonathan Frederic
67f364396f
Properly dispose of widget model. Delete comm's ref to
...
the widget model so the GC will collect it when it is
no longer reference elsewhere.
12 years ago
Jonathan Frederic
296d0e0b31
Added on_view_displayed and on_close callbacks to widget manager.
12 years ago
Jonathan Frederic
b47cc6c3ee
Added more comments to widget model JS
12 years ago
Jonathan Frederic
b6254e0ce5
Better comments in _display_view
12 years ago
Jonathan Frederic
57460cddcb
Dont err if view name isn't registered.
12 years ago
Jonathan Frederic
db6ca32499
Added on_create_widget callback to WidgetManager
12 years ago
Jonathan Frederic
61f7408893
Privatize _handle_com_open of WidgetManager
12 years ago
Jonathan Frederic
5ffd0f00c6
Prviatize methods that should not be called externally
...
in Model and View JS widget classes
12 years ago
Jonathan Frederic
673a723a73
Moved get_msg_cell which depends on notebook specific logic
...
into the WidgetManager for easy override. Also removed
almost all of the logic that refers to cell.output_area inside
the model and replaced it with logic that uses cell.
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
90030b238b
Added missing parameter to get_msg_cell call
12 years ago
Jonathan Frederic
48eaebf683
Moved the logic to get a cell by message id into the notebook.js.
...
Also added more detail to the comments in the get output area function in widgets.js
12 years ago
Jonathan Frederic
d35d8c242e
Fixed bug that prevent model.save() from being called on
...
widget models without views.
12 years ago
Jonathan Frederic
65510584c5
Fixed typos in throttling code.
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
e39ba92172
Fixed: Last state not being sent to kernel while throttling.
12 years ago
Jonathan Frederic
4c23d2c7a1
Fixed comment in widget.js
12 years ago
Jonathan Frederic
c3a029acc1
Fixed & separated output_area -> widget_area logic
12 years ago
Jonathan Frederic
21383149ce
Decoupled cell_index from widget model code.
12 years ago
Jonathan Frederic
8e259f401d
Fixed callback mapping for widget spawned widgets
12 years ago
Jonathan Frederic
8fba5d2f07
Added add_class and remove_class methods.
12 years ago
Jonathan Frederic
810ea87e5b
Added `visible` property to all widgets
12 years ago
Jonathan Frederic
19f0372f54
Added ability to specify the element that gets style in a view
...
when no jquery selector is provided (default).
12 years ago
Jonathan Frederic
b9f6e562f7
Changed underscores in CSS names to dashes
12 years ago
Jonathan Frederic
aeebaaf09d
Updated require js references, now absolute paths are used
12 years ago
Jonathan Frederic
b5079276d0
Added msg_id - cell mapping.
12 years ago
Jonathan Frederic
c7ded710dc
Added support for multiple model views in one widget area.
12 years ago
Jonathan Frederic
0af18e8c13
Changed parent/child api widgets
12 years ago
Jonathan Frederic
f241242b7f
Fixes that allow last commit to work.
12 years ago
Jonathan Frederic
837ef44256
LOTS OF WIDGET CHANGES
...
Moved model-like code out of manager.
Added parent/child API.
Throttling now occurs on a model by model level.
View/cell association is fixed for the most part, but there is still
one assumption being made in handle_com_msg.
12 years ago
Jonathan Frederic
3c36e715c9
Added message throttling
12 years ago
Jonathan Frederic
0d25759d53
Add state packet delta compression.
12 years ago
Jonathan Frederic
2ad57f6f9d
Attempt 1, HBox and VBox implementation.
12 years ago
Jonathan Frederic
40a923c5b6
Lots of updates to widget(s) js
...
Use require.js (again)
Allow IntTextView and FloatTextView to be used without min/max
12 years ago
Jonathan Frederic
990303f3eb
Removed require.js scheme since it forces async event driven model,
...
this model does not work with the comm/widget communication model.
We need to be able to load the dependencies before we send the
show() message to the widget manager. Otherwise a race condition
will exist where the widget manager may recieve the show message
before the dependencies have been loaded (happened almost every time).
12 years ago
Jonathan Frederic
c9d604d54e
Use require.js where possible.
12 years ago
Jonathan Frederic
fffaba9a7b
Moved widget js into static
12 years ago
Jonathan Frederic
f32f450d0f
Moved widget.js into widget code directory
12 years ago
Jonathan Frederic
3e36dd0c92
Added apply method to base model.
...
Allows model to propogate changes to all views except
for the one specified.
12 years ago
Brian E. Granger
50213707ea
Fixing infinite recursion.
12 years ago
Jonathan Frederic
a576a0c8a1
Fixed widget.js and notebook.js so IPython.notebook.widget_manager is created.
12 years ago
Jonathan Frederic
0230fa8c09
Added widjet.js
...
Other commit actually added notebook.js changes
12 years ago