d2-ui-favorites

1.0.4 • Public • Published

Favorites Dialog D2-UI component

Usage

Build

$ pwd
/path/to/d2-ui/packages/favorites

$ yarn build

Publish

$ pwd
/path/to/d2-ui/packages/favorites
$ yarn version

$ cd build # always publish from the build dir!
$ npm login
$ npm publish

Install

yarn add d2-ui-favorites

Import

import FavoritesDialog from 'd2-ui-favorites';

<FavoritesDialog
    type='string'
    open={function}
    onRequestClose={function}
    onFavoriteSelect={function}
    d2={d2}
/>

Local development

$ pwd
/path/to/d2-ui/packages/favorites

$ yarn build

$ cd build
$ yarn link

In the integrating project:

$ yarn link d2-ui-favorites
$ ls node_modules/d2-ui-favorites/ # if there are more files here than below you did not link from the build dir!
    index.js    package.json

Readme

Keywords

none

Package Sidebar

Install

npm i d2-ui-favorites

Weekly Downloads

0

Version

1.0.4

License

BSD-3-Clause

Unpacked Size

970 kB

Total Files

3

Last publish

Collaborators

  • dhis2_viktor