Skip to content
This repository has been archived by the owner on Apr 3, 2022. It is now read-only.

iisg/cytoscape-actionbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3efb33a · Feb 26, 2016

History

8 Commits
Feb 25, 2016
Feb 25, 2016
Nov 18, 2015
Nov 18, 2015
Nov 18, 2015
Nov 18, 2015
Feb 15, 2016
Nov 18, 2015
Nov 18, 2015
Nov 18, 2015

Repository files navigation

CytoscapeActionbar

Description

Actionbar for Cytoscape.js

Dependencies

  • Cytoscape.js >= 2.2
  • jQuery >= 1.4

Installation

Require package using bower:

bower install iisg/cytoscape-actionbar --save

Usage

  cy = cytoscape(
    container: ..
  )
  cy.actionbar(
    items: [
      {
        icon: 'fa fa-search-minus'      # class for actionbar button
        tooltip: 'Zoom out'             # button tooltip message
        action: (cy) ->                 # function to call
		condition: $compile("<span ng-show='isVisible'></span>")($scope) # optional compiled angular expression which wraps button
          ...
      },
      ..
    ]
  )