Follow

json spec?

Hi,

 

I'm trying to understand the function of some of the JSON elements that Timeline requires.  Is there a spec somewhere I can refer to?  In particular, at the moment, I'm wondering why "type" is required and whether there are other permitted values besides "default".  If so, I'll make that option available to users, but if not I'll hardcode the default option into my JSON template. 

 

Thanks,

m

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

1 Comments

  • 0
    Avatar
    Joe Germuska

    There's a casual sort of spec about the JSON at https://github.com/NUKnightLab/TimelineJS.

    If you're talking about the 'type' attribute that has the value 'timeline' here https://github.com/NUKnightLab/TimelineJS#using-a-method-advanced the reason for the 'type' was that originally, Zach thought that the slide show part might be more generalized for use in other applications. It turns out that was premature architecture, and now that StoryMapJS is being built, the slides were rebuilt rather than used as a library -- but you should just use the value 'timeline' as there are logic branches which expect that.

    You refer to 'default', however, which makes me wonder if you're talking about something else?

     

Please sign in to leave a comment.
Powered by Zendesk