Skip to content

Conversation

@xhluca
Copy link

@xhluca xhluca commented Mar 31, 2019

About

This PR will add the option to add external layouts (5 popular layouts). The user will need to do:

import dash
from dash.dependencies import Input, Output, State
import dash_core_components as dcc
import dash_html_components as html

import dash_cytoscape as cyto

# Load extra layouts
cyto.load_extra_layouts()

app = dash.Dash(__name__)
server = app.server
...

In order to load the layouts. This function will load the appropriate bundles (dash_cytoscape_extra.[min|dev].js). Here's one of the new layouts:
usage-elements-extra

The app is saved as demos/usage-elements-extra.py.

Pre-Merge checklist

  • The project was correctly built with npm run build:all.
  • If there was any conflict, it was solved correctly
  • All changes were documented in CHANGELOG.md.
  • All tests on CircleCI have passed.
  • All Percy visual changes have been approved.
  • Two people have 💃'd the pull request. You can be one of these people if you are a Dash Cytoscape core contributor.

Reference Issues

Closes #32

Other comments

@xhluca xhluca changed the title Adding external layouts with new function Adding option to load external layouts Mar 31, 2019
@xhluca xhluca requested a review from chriddyp March 31, 2019 18:44
Copy link
Member

@chriddyp chriddyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃 very nice!

@xhluca xhluca merged commit 2b053db into master Mar 31, 2019
@xhluca xhluca deleted the dev branch March 31, 2019 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for 3rd party layouts

3 participants