2017-11-21 05:53:09 -05:00
|
|
|
import SelectKitHeaderComponent from "select-kit/components/select-kit/select-kit-header";
|
|
|
|
import computed from "ember-addons/ember-computed-decorators";
|
|
|
|
|
|
|
|
export default SelectKitHeaderComponent.extend({
|
2018-06-15 11:03:24 -04:00
|
|
|
layoutName:
|
|
|
|
"select-kit/templates/components/dropdown-select-box/dropdown-select-box-header",
|
2018-10-24 16:09:36 -04:00
|
|
|
classNames: "btn-default dropdown-select-box-header",
|
2017-11-21 05:53:09 -05:00
|
|
|
tagName: "button",
|
|
|
|
|
|
|
|
classNameBindings: ["btnClassName"],
|
|
|
|
|
|
|
|
@computed("options.showFullTitle")
|
|
|
|
btnClassName(showFullTitle) {
|
2018-03-22 06:29:55 -04:00
|
|
|
return `btn ${showFullTitle ? "btn-icon-text" : "no-text btn-icon"}`;
|
2017-11-21 05:53:09 -05:00
|
|
|
}
|
|
|
|
});
|