Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 17:30:29 +01:00
17 Zeilen
624 B
JavaScript
17 Zeilen
624 B
JavaScript
import SingleSelectHeaderComponent from "select-kit/components/select-kit/single-select-header";
|
|
import { computed } from "@ember/object";
|
|
import { reads } from "@ember/object/computed";
|
|
|
|
export default SingleSelectHeaderComponent.extend({
|
|
classNames: ["combo-box-header", "wizard-pro-selector-header"],
|
|
caretUpIcon: reads("selectKit.options.caretUpIcon"),
|
|
caretDownIcon: reads("selectKit.options.caretDownIcon"),
|
|
caretIcon: computed(
|
|
"selectKit.isExpanded",
|
|
"caretUpIcon",
|
|
"caretDownIcon",
|
|
function () {
|
|
return this.selectKit.isExpanded ? this.caretUpIcon : this.caretDownIcon;
|
|
}
|
|
),
|
|
});
|