UNPKG

@empathyco/x-components

Version:
33 lines (27 loc) 1.27 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [HistoryQuery](./x-components.historyquery.md) ## HistoryQuery variable This component renders a history query suggestion combining two buttons: one for selecting this suggestion as the search query, and another one to remove this query suggestion from the history queries. **Signature:** ```typescript _default: import("vue").DefineComponent<{ suggestion: { type: PropType<HistoryQueryModel>; required: true; }; removeButtonClass: StringConstructor; suggestionClass: StringConstructor; }, { query: import("vue").ComputedRef<string>; suggestionSelectedEvents: import("vue").ComputedRef<Partial<XEventsTypes>>; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ suggestion: { type: PropType<HistoryQueryModel>; required: true; }; removeButtonClass: StringConstructor; suggestionClass: StringConstructor; }>> & { onClick?: ((...args: any[]) => any) | undefined; }, {}, {}> ```