UNPKG

@empathyco/x-components

Version:
47 lines (38 loc) 1.65 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [MyHistory](./x-components.myhistory.md) ## MyHistory variable The component renders the full history of user searched queries grouped by the day they were performed. **Signature:** ```typescript _default: import("vue").DefineComponent<{ animation: { type: (StringConstructor | ObjectConstructor | FunctionConstructor)[]; default: string; }; locale: { type: StringConstructor; default: string; }; queriesListClass: StringConstructor; }, { hasHistoryQueries: import("vue").ComputedRef<boolean>; groupByDate: import("vue").ComputedRef<Dictionary<HistoryQueryType[]>>; historyQueries: import("vue").ComputedRef<HistoryQueryType[]>; formatTime: (timestamp: number) => string; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ animation: { type: (StringConstructor | ObjectConstructor | FunctionConstructor)[]; default: string; }; locale: { type: StringConstructor; default: string; }; queriesListClass: StringConstructor; }>>, { animation: string | Function | Record<string, any>; locale: string; }, {}> ``` ## Remarks Allows the user to select one of them, emitting the needed events. A history query is just another type of suggestion that contains a query that the user has made in the past.