discourse/app/assets/javascripts/select-kit/components/dropdown-select-box/dropdown-select-box-header.js.es6
Joffrey JAFFEUX d48542796e
FIX: select-kit refactoring
- improve mini-tag-chooser keyboard behavior
- all multil select now respond to select all and left/right arrows
- improve events handling
- many minor tweaks
2018-03-22 11:29:55 +01:00

16 lines
557 B
JavaScript

import SelectKitHeaderComponent from "select-kit/components/select-kit/select-kit-header";
import computed from "ember-addons/ember-computed-decorators";
export default SelectKitHeaderComponent.extend({
layoutName: "select-kit/templates/components/dropdown-select-box/dropdown-select-box-header",
classNames: "dropdown-select-box-header",
tagName: "button",
classNameBindings: ["btnClassName"],
@computed("options.showFullTitle")
btnClassName(showFullTitle) {
return `btn ${showFullTitle ? "btn-icon-text" : "no-text btn-icon"}`;
}
});