@empathyco/x-components
Version:
Empathy X Components
32 lines (23 loc) • 1.19 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [BaseResultLink](./x-components.baseresultlink.md)
## BaseResultLink variable
Component to be reused that renders an `<a>` wrapping the result contents.
**Signature:**
```typescript
_default: import("vue").DefineComponent<{
result: {
type: PropType<Result>;
required: true;
};
}, {
el: import("vue").Ref<HTMLElement | null | undefined>;
emitUserClickedAResult: () => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
result: {
type: PropType<Result>;
required: true;
};
}>>, {}, {}>
```
## Remarks
It has the logic to emit [XEventsTypes.UserClickedAResult](./x-components.xeventstypes.userclickedaresult.md) to the bus on click mouse events. Additionally, this component may be injected other events to be emitted on click event, so, depending on where it's used its father component may provide this events.