2 Star 1 Fork 0

Indexea / widgets

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Readme.md 1.37 KB
一键复制 编辑 原始数据 按行查看 历史
Indexea 提交于 2023-01-11 10:45 . readme

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
  }
})
1
https://gitee.com/indexea/widgets.git
git@gitee.com:indexea/widgets.git
indexea
widgets
widgets
main

搜索帮助