Ghost/ghost/admin/app/components/gh-resource-select.hbs

20 lines
665 B
Handlebars
Raw Normal View History

<PowerSelect
@searchEnabled={{true}}
@options={{this.options}}
@selected={{this.selectedOption}}
@onChange={{this.onChange}}
@triggerClass="gh-resource-select-trigger"
@dropdownClass="gh-resource-select-dropdown"
@placeholder={{this.placeholderText}}
@renderInPlace={{this.renderInPlace}}
@disabled={{or @disabled this.fetchOptionsTask.isRunning}}
@optionsComponent={{component "power-select/options"}}
@search={{this.searchAndSuggest}}
@searchField={{this.searchField}}
@searchMessage={{@searchMessage}}
@searchPlaceholder={{this.searchPlaceholderText}}
as |resource|
>
{{resource.title}}
</PowerSelect>