_buildHtml: function () { var _ = Stone.lazyGettext; this.$super(); this.__html.window.className += " photonui-window"; this.__html.windowTitle = document.createElement("div"); this.__html.windowTitle.className = "photonui-window-title"; this.__html.window.appendChild(this.__html.windowTitle); this.__html.windowTitleCloseButton = document.createElement("button"); this.__html.windowTitleCloseButton.className = "photonui-window-title-close-button fa fa-times"; this.__html.windowTitleCloseButton.title = Stone.lazyGettext("Close"); this.__html.windowTitle.appendChild(this.__html.windowTitleCloseButton); this.__html.windowTitleText = document.createElement("span"); this.__html.windowTitleText.className = "photonui-window-title-text"; this.__html.windowTitle.appendChild(this.__html.windowTitleText); this.__html.windowContent = document.createElement("div"); this.__html.windowContent.className = "photonui-container photonui-window-content"; this.__html.window.appendChild(this.__html.windowContent); },
} this._value = ""; var item = new MenuItem({text: this.placeholder, className: "photonui-select-placeholder"}); Helpers.cleanNode(this.__html.select); this.__html.select.appendChild(item.html); }, /** * The placeholder displayed if nothing is selected. * * @property placeholder * @type String * @default "Select..." */ _placeholder: Stone.lazyGettext("Select..."), getPlaceholder: function () { return this._placeholder; }, setPlaceholder: function (placeholder) { this._placeholder = placeholder; }, /** * Layout children widgets. * * @property children * @type Array * @default []
__onLocaleChanged: function () { this.$super(); this.__html.windowTitleCloseButton.title = Stone.lazyGettext("Close"); }