@visual-framework/vf-tree

2.0.0-alpha.1 • Public • Published

Tree component

npm version

About

A collapsable tree list suited for list displays or deep navigation structures.

Install

This repository is distributed with npm. After installing npm, you can install vf-tree with this command.

$ yarn add --dev @visual-framework/vf-tree

Usage

There are several paramaters availabl when using the Nunjucks template:

  • expanded: true Control if the entire tree is expanded/collpased
  • sublist if an object of titles the item will be shown as a group
  • artiveTrail: true Highlights a tree as an active path and if it is a sublist, opens it

You can see this component in action in the EMBL-EBI online tutorials, e.g. A guide to bioinformatics.

Sass/CSS

The source files included are written in [Sass][sass] (scss) Point your sass include-path at your node_modules directory and import it like this.

@import "@visual-framework/vf-tree/index.scss";

Make sure you import Sass requirements along with the modules. You can use a project boilerplate or the vf-sass-starter

Help

Readme

Keywords

Package Sidebar

Install

npm i @visual-framework/vf-tree

Weekly Downloads

2

Version

2.0.0-alpha.1

License

Apache 2.0

Unpacked Size

37.1 kB

Total Files

13

Last publish

Collaborators

  • bhushan-ebi
  • pacope92
  • ebiwebdev
  • sandykadam
  • khawkins98