Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New api using data attributes #4

Merged
merged 5 commits into from
Jan 15, 2019
Merged

New api using data attributes #4

merged 5 commits into from
Jan 15, 2019

Conversation

relf
Copy link
Contributor

@relf relf commented Jan 14, 2019

In order to ease the reuse of the library, this PR allows to specify the json data as html escaped string through the data attribute 'data-mdo' or specify another filename through the data-attribute 'data-mdo-file'. If 'data-mdo' is specified it takes precedence over 'data-mdo-file'. If none is specified, usual 'xdsm.json' is assumed.
Example:

  <div class="xdsm" data-mdo="{&quot;nodes&quot;: [...], &quot;edges&quot;: [...], ...}"></div>

or

  <div class="xdsm" data-mdo-file="examples/idf.json"></div>

Minor change: toolbar class was renamed xdsm-toolbar to be more specific.

@relf relf merged commit 3921c0b into master Jan 15, 2019
@relf relf deleted the ft-api branch December 4, 2019 13:48
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.

1 participant