2017-11-21 18:53:09 +08: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 23:03:24 +08:00
|
|
|
layoutName:
|
|
|
|
"select-kit/templates/components/dropdown-select-box/dropdown-select-box-header",
|
2018-10-25 04:09:36 +08:00
|
|
|
classNames: "btn-default dropdown-select-box-header",
|
2017-11-21 18:53:09 +08:00
|
|
|
tagName: "button",
|
|
|
|
|
|
|
|
classNameBindings: ["btnClassName"],
|
|
|
|
|
|
|
|
@computed("options.showFullTitle")
|
|
|
|
btnClassName(showFullTitle) {
|
2018-03-22 18:29:55 +08:00
|
|
|
return `btn ${showFullTitle ? "btn-icon-text" : "no-text btn-icon"}`;
|
2017-11-21 18:53:09 +08:00
|
|
|
}
|
|
|
|
});
|