Jason Grout
686e73dfdf
More simplifications due to promises
11 years ago
Jonathan Frederic
c41dcb35e9
Proxy console.error calls
11 years ago
Jonathan Frederic
5a745be138
Add Promise support to models.
11 years ago
Jonathan Frederic
78c0bbdb4d
Fix view rendering order.
11 years ago
Jonathan Frederic
4beda5d0fb
Initial stab at adding promises to the widget framework.
11 years ago
Sylvain Corlay
604d0bb666
A String is an object
11 years ago
Sylvain Corlay
4b6c753f3f
Dates are JavaScript objects, and _pack_models returns an empty object
11 years ago
Jonathan Frederic
ba77877c18
Rebase fixes
11 years ago
Jonathan Frederic
a68df8a8b1
Address @minrk 's review comments.
11 years ago
Jonathan Frederic
2b5ebb9e8f
Make Python push initial state.
...
Also added initial state push callback.
11 years ago
Jonathan Frederic
79670e8afb
Merge pull request #6494 from takluyver/widget-comm-require
...
Allow widget views to be loaded from require modules
11 years ago
Jonathan Frederic
176529cce2
Make sure DOMWidget _css is set after basic style traits
11 years ago
Thomas Kluyver
590ba19ac3
Clean up some JS code
11 years ago
Thomas Kluyver
1ff846520b
Put callbacks for create_view and create_child_view in options
...
And add errback support
11 years ago
Thomas Kluyver
5953a3f874
Allow widget views to be loaded from require modules
...
This required refactoring things that create widget views to use
callbacks instead of return values.
11 years ago
Jonathan Frederic
60bf0f5b2f
s/apply_update/set_state
11 years ago
Jonathan Frederic
b5195e1b17
Merge pull request #6548 from SylvainCorlay/widget_views_by_id
...
Make WidgetModel.views be an object indexed by view id
11 years ago
sylvain.corlay
60925f0a1a
hasOwnProperty
11 years ago
Sylvain Corlay
d8635fc1cc
on_atomic_change -> on_some_change
11 years ago
Sylvain Corlay
b6a0f60d3f
Make Widget.views be an object indexed by view id
11 years ago
Sylvain Corlay
a9fca81e95
Set default view to None and never display widget with no view
11 years ago
Sylvain Corlay
fb336de4ed
register bare views
11 years ago
Brian E. Granger
4ec1a3b41e
Merge pull request #6235 from jdfreder/addclass
...
Remove add/remove_class and set/get_css.
11 years ago
Jonathan Frederic
d4d554052e
Address problems found in in-person review
11 years ago
Jonathan Frederic
6637b768cc
Merge pull request #6463 from SylvainCorlay/bulk_update
...
Bulk update of widget attributes
11 years ago
Sylvain Corlay
cd782c916d
state_lock loop
11 years ago
Sylvain Corlay
769e7fa108
rename to on_atomic_change
12 years ago
Jonathan Frederic
591b2b3ad7
Tabs->Spaces
12 years ago
Jonathan Frederic
02e3a58030
s/fore_color/color
...
s/back_color/background_color
12 years ago
Sylvain Corlay
e809fcb545
stop listening
12 years ago
Sylvain Corlay
75cb63fba2
Adding a comment and renaming on_bulk_change to on_change
12 years ago
Sylvain Corlay
06747c1ada
simplification of trigger destroy
12 years ago
Sylvain Corlay
222dc5fb3e
Destroy backbone model on comm:close
12 years ago
sylvain.corlay
e77b21cb22
optimization of WidgetModel.apply_update
12 years ago
sylvain.corlay
6eea0c37aa
Added on_bulk_change method in WidgetModel
12 years ago
Jonathan Frederic
cb9014e42c
Fixed rebase bugs and other bugs.
12 years ago
Jonathan Frederic
9b4d19bad7
Added Bootstrap specific classes,
...
and fixed a few bugs here and there...
12 years ago
Jonathan Frederic
a0e70e350f
Fix some bugs found by the widget examples,
...
add margin and padding base traits,
add overflow traits to box base.
12 years ago
Jonathan Frederic
9af77a6374
Initial crack at using specific traits for styling.
12 years ago
Jonathan Frederic
f85a01041c
Remove add/remove class methods,
...
Remove helper set/get css methods
12 years ago
Jonathan Frederic
ba0a805404
Merge pull request #6226 from jasongrout/css-top-default
...
Remove $el_to_style from the widget javascript code; '' now defaults to this.$el
12 years ago
Jonathan Frederic
0ee948efca
Merge pull request #6200 from SylvainCorlay/widget-changes
...
Partial update of DOMWidgetView styling and simplification of containers.
12 years ago
Sylvain Corlay
c03a3eb6d2
making the use of options explicit
12 years ago
Jason Grout
eccc20ce1a
Remove $el_to_style from the widget javascript code; '' now defaults to this.$el
...
This seems to make it easiest to select the top-level element. An alternative is to use special syntax for top-level elements, like in https://github.com/ipython/ipython/pull/6185
This will be followed up by other fixes that let the user set specific common properties of different elements.
This change also adds the .addBack() call, which means that nonempty selectors now apply to this.$el and its descendants, rather than just the descendants of this.$el.
12 years ago
sylvain.corlay
2ca04578cf
adding options explicitly
12 years ago
Brian E. Granger
2999510bfa
Merge pull request #6182 from SylvainCorlay/do-diff-correction
...
do_diff function was always removing all views from the old list.
12 years ago
Sylvain Corlay
93ee9ea7a9
removing timout
12 years ago
sylvain.corlay
5c0fda1dc0
correction
12 years ago
sylvain.corlay
34fe520742
widget changes continued
12 years ago
sylvain.corlay
972fbb5f34
widget simplification continued
12 years ago