@indexea/widgets

1.1.2 • Public • Published

This is the repository for all Indexea web components

4 widgets

widgets

Installation

$ npm i @indexea/widgets
or
$ yarn add @indexea/widgets

Usage

SearchBox

import { SearchBox } from '@indexea/widgets'

const app = document.getElementById('app')

new SearchBox({
  target: app,
  props: {
    widget: '[widget ident]',
    endpoint: 'https://api.indexea.com/v1' // Optional, change it in private cloud
  }
})

SearchDialog

import { SearchDialog } from '@indexea/widgets'

const app = document.getElementById('app')

new SearchDialog({
  target: app,
  props: {
    widget: '[widget ident]',
    endpoint: 'https://api.indexea.com/v1' // Optional, change it in private cloud
  }
})

QueryBox

import { QueryBox } from '@indexea/widgets'

const app = document.getElementById('app')

new QueryBox({
  target: app,
  props: {
    widget: '[widget ident]',
    endpoint: 'https://api.indexea.com/v1', // Optional, change it in private cloud
    xxxx: xxxx // Other args
  }
})

RecommBox

import { RecommBox } from '@indexea/widgets'

const app = document.getElementById('app')

new RecommBox({
  target: app,
  props: {
    widget: '[recomm ident]',
    endpoint: 'https://api.indexea.com/v1', // Optional, change it in private cloud
    xxxx: xxxx // Other args
  }
})

Readme

Keywords

Package Sidebar

Install

npm i @indexea/widgets

Weekly Downloads

3

Version

1.1.2

License

MIT

Unpacked Size

1.55 MB

Total Files

27

Last publish

Collaborators

  • indexea