This package has been deprecated

Author message:

This has been replaced by @dhis2/d2-ui-file-menu.

@dhis2/d2-ui-favorites-menu

1.0.10 • Public • Published

Favorites Menu D2-UI component

Usage

Build

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

$ yarn build

Publish

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

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

Install

yarn add d2-ui-favorites-menu

Import

import FavoritesMenu from 'd2-ui-favorites-menu';

<FavoritesMenu
    d2={d2}
    favoriteType={string}
    onNew={function}
    onOpen={function}
    onSave={function}
    onSaveAs={function}
    onRename={function}
    onTranslate={function}
    onShare={function}
    onWriteInterpretation={function}
    onDelete={function}
    onError={function}
/>

Local development

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

$ yarn build

$ cd build
$ yarn link

In the integrating project:

$ yarn link d2-ui-favorites-menu
$ ls node_modules/d2-ui-favorites-menu/ # 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 @dhis2/d2-ui-favorites-menu

Weekly Downloads

0

Version

1.0.10

License

BSD-3-Clause

Unpacked Size

8.92 MB

Total Files

42

Last publish

Collaborators

  • amcgee
  • dhis2-bot