d2-ui-favorites
Favorite component for DHIS2
Last updated a year ago by dhis2_viktor .
BSD-3-Clause · Original npm · Tarball · package.json
$ cnpm install d2-ui-favorites 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.4                                ...           latest (a year ago)

5 Versions

  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 2
Last Day 0
Last Week 1
Last Month 0
Dependencies (9)
Dev Dependencies (12)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |