Show More
@@ -417,10 +417,10 b' define(["widgets/js/manager",' | |||||
417 | this.update_classes(old_classes, new_classes); |
|
417 | this.update_classes(old_classes, new_classes); | |
418 | }, this); |
|
418 | }, this); | |
419 |
|
419 | |||
420 |
this.model.on('change: |
|
420 | this.model.on('change:color', function (model, value) { | |
421 | this.update_attr('color', value); }, this); |
|
421 | this.update_attr('color', value); }, this); | |
422 |
|
422 | |||
423 | this.model.on('change:back_color', function (model, value) { |
|
423 | this.model.on('change:background_color', function (model, value) { | |
424 | this.update_attr('background', value); }, this); |
|
424 | this.update_attr('background', value); }, this); | |
425 |
|
425 | |||
426 | this.model.on('change:width', function (model, value) { |
|
426 | this.model.on('change:width', function (model, value) { | |
@@ -461,8 +461,8 b' define(["widgets/js/manager",' | |||||
461 | this.update_css(this.model, this.model.get("_css")); |
|
461 | this.update_css(this.model, this.model.get("_css")); | |
462 |
|
462 | |||
463 | this.update_classes([], this.model.get('_dom_classes')); |
|
463 | this.update_classes([], this.model.get('_dom_classes')); | |
464 |
this.update_attr('color', this.model.get(' |
|
464 | this.update_attr('color', this.model.get('color')); | |
465 | this.update_attr('background', this.model.get('back_color')); |
|
465 | this.update_attr('background', this.model.get('background_color')); | |
466 | this.update_attr('width', this.model.get('width')); |
|
466 | this.update_attr('width', this.model.get('width')); | |
467 | this.update_attr('height', this.model.get('height')); |
|
467 | this.update_attr('height', this.model.get('height')); | |
468 | this.update_attr('border-color', this.model.get('border_color')); |
|
468 | this.update_attr('border-color', this.model.get('border_color')); |
@@ -388,8 +388,8 b' class DOMWidget(Widget):' | |||||
388 | padding = CUnicode(sync=True) |
|
388 | padding = CUnicode(sync=True) | |
389 | margin = CUnicode(sync=True) |
|
389 | margin = CUnicode(sync=True) | |
390 |
|
390 | |||
391 |
|
|
391 | color = Unicode(sync=True) | |
392 | back_color = Unicode(sync=True) |
|
392 | background_color = Unicode(sync=True) | |
393 | border_color = Unicode(sync=True) |
|
393 | border_color = Unicode(sync=True) | |
394 |
|
394 | |||
395 | border_width = CUnicode(sync=True) |
|
395 | border_width = CUnicode(sync=True) |
General Comments 0
You need to be logged in to leave comments.
Login now