@superset-ui/plugin-filter-antd
TypeScript icon, indicating that this package has built-in type declarations

0.17.5 • Public • Published

@superset-ui/plugin-filter-antd

Version

This plugin provides native filter plugins based on AntD.

Usage

Configure key, which can be any string, and register the plugin. This key will be used to lookup this chart throughout the app.

Below is an example of how to use the Select filter plugin.

import { AntdFilterSelectPlugin } from '@superset-ui/plugin-filter-antd';

new AntdFilterSelectPlugin().configure({ key: 'plugin-filter-select' }).register();

Then use it via SuperChart.

<SuperChart
  chartType="plugin-filter-select"
  width={600}
  height={600}
  formData={...}
  queriesData={[{
    data: {...},
    // this hook gets called
    hooks: { setExtraFormData: extraFormData => console.log(extraFormData) },
  }]}
/>

Dependents (0)

Package Sidebar

Install

npm i @superset-ui/plugin-filter-antd

Weekly Downloads

0

Version

0.17.5

License

Apache-2.0

Unpacked Size

97.7 kB

Total Files

63

Last publish

Collaborators

  • eschutho
  • arash_suri
  • michael.s.molina
  • suddjian
  • superset-ui-owner
  • kristw
  • data-ui
  • conglei
  • christopher.card.williams
  • soboko
  • mistercrunch
  • cdchambers
  • khtruong
  • erik_ritter
  • graceguo-supercat
  • michellet
  • supersetbot
  • ktmud
  • villebro
  • rusackas
  • kgabryje