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

Settings to be applied to all slides #17

Open
reki2000 opened this issue Jul 7, 2017 · 0 comments
Open

Settings to be applied to all slides #17

reki2000 opened this issue Jul 7, 2017 · 0 comments

Comments

@reki2000
Copy link
Contributor

reki2000 commented Jul 7, 2017

Problem

If all slides have the same string like "Created date: 2017-10-20", model.json should have the same setting on EVERY slide settings.

Solution

Introduce "global" setting into model.json

Specification

The same settings for each slides, but written under "global" key in JSON.

If a key in "slides" setting has the same name with the key defined in "global", the value defined in "slides" is used.

{
  "global": {
     "<key1>": "<value1>",
     "<key2>": { <chart settings> }
  },
  "slides": {
     "<slide_id>": {
        "<key1>": "<value1_local>",       # this value is used instead of <value1> in global
       ....
     }
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant