5 Polymer('core-toolbar', {
8 * Controls how the items are aligned horizontally.
9 * Options are `start`, `center`, `end`, `between` and `around`.
18 * Controls how the items are aligned horizontally when they are placed
20 * Options are `start`, `center`, `end`, `between` and `around`.
22 * @attribute middleJustify
29 * Controls how the items are aligned horizontally when they are placed
31 * Options are `start`, `center`, `end`, `between` and `around`.
33 * @attribute bottomJustify
39 justifyChanged: function(old) {
40 this.updateBarJustify(this.$.topBar, this.justify, old);
43 middleJustifyChanged: function(old) {
44 this.updateBarJustify(this.$.middleBar, this.middleJustify, old);
47 bottomJustifyChanged: function(old) {
48 this.updateBarJustify(this.$.bottomBar, this.bottomJustify, old);
51 updateBarJustify: function(bar, justify, old) {
53 bar.removeAttribute(this.toLayoutAttrName(old));
56 bar.setAttribute(this.toLayoutAttrName(justify), '');
60 toLayoutAttrName: function(value) {
61 return value === 'between' ? 'justified' : value + '-justified';