@empathyco/x-components
Version:
Empathy X Components
34 lines (28 loc) • 1.41 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[](./index.md) > [@empathyco/x-components](./x-components.md) > [SortDropdown](./x-components.sortdropdown.md)
The `SortDropdown` component allows user to select the search results order. This component also allows to change the selected sort programmatically.
**Signature:**
```typescript
_default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
items: {
type: PropType<Sort[]>;
required: true;
};
animation: PropType<string | Component>;
}>, {
emitUserClickedASort: (sort: Sort) => void;
rootRef: import("vue").Ref<import("vue").DefineComponent<{}, {}, any> | undefined, import("vue").DefineComponent<{}, {}, any> | undefined>;
selectedSort: import("vue").ComputedRef<string>;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
items: {
type: PropType<Sort[]>;
required: true;
};
animation: PropType<string | Component>;
}>> & Readonly<{
onChange?: ((...args: any[]) => any) | undefined;
}>, {}, {}, {
BaseDropdown: import("vue").DefineComponent<{}, {}, any>;
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>
```