@coveops/result-link-new-tab

1.0.2 • Public • Published

Result Link New Tab

The Result Link New Tab component sets the Coveo configuration to open all result links in a new tab.

Disclaimer: This component was built by the community at large and is not an official Coveo JSUI Component. Use this component at your own risk.

Getting Started

  1. Install the component into your project.
npm i @coveops/result-link-new-tab
  1. Use the Component or extend it

Typescript:

import * as ResultLinkNewTab from '@coveops/result-link-new-tab';

Javascript

const ResultLinkNewTab = require('@coveops/result-link-new-tab');
  1. You can also expose the component alongside other components being built in your project.
export * as ResultLinkNewTab from '@coveops/result-link-new-tab'
  1. Include the component in your template as follows:

Add the following execution to your code once the page has initialized:

<script>
    CoveoResultLinkNewTab()        
</script>

If the component is being bundled amongst other components, it will be available on the Coveo object.

<script>
    Coveo.ResultLinkNewTab()        
</script>

Be sure to update the variables to have the relevant information.

Contribute

  1. Clone the project
  2. Build the code base: npm run build
  3. Update the test organization ID and API Token and configure your port on the npm serve script in the package.json: --org-id <ORG_ID> --token <ORG_KEY> --port 8080
  4. Serve the sandbox for live development npm run serve

Readme

Keywords

none

Package Sidebar

Install

npm i @coveops/result-link-new-tab

Weekly Downloads

1

Version

1.0.2

License

Apache-2.0

Unpacked Size

9.38 kB

Total Files

5

Last publish

Collaborators

  • iftekhar.ulhaq
  • cfosscoveo
  • belbizri
  • jantoun_coveo
  • ehsanshahneh
  • watallah
  • coveoit
  • gfoumbi
  • rvundavalli
  • sfecteau
  • jfleurent
  • jmdro
  • davebouffard
  • jfallaire
  • achouan
  • hsinghcoveo
  • elafleur_coveo
  • plavigueur
  • lpblais-coveo