I have developed a tabbed panel that uses the Material Design Lite tabbed panel component.
I have programmed the tabs to run a timeline within Hype when pressed - all works well until i duplicate the scene when the code fails on Scene 2.
PROBLEM:
I need to use the tabbed panel as a global navigation in the form of a persistent symbol however as you can see here in the test the code only works once on Scene 1 then the tabbed panel breaks once duplicated on another Scene.
My thoughts are that this is an issue with conflicting Classes or panel ids but have tried everything I can think of to resolve and need some expert opinion!
When clicking on a tab in scene 2 it’s calling a method that doesn’t exist
HYPE.documents['index'].startTimelineNamed...
I have a feeling this has been passed over from a “preview” as “index” is often used when previewing a document. You need to use the name of your document or make sure your passing in hypeDocument.
Thanks @DBear the template file does reference ‘index’ but the live demo has the file name of the exported file in place of ‘index’ so all is ok in that sense i think.
Problem lies when I change scene the js library seems to fail and the material design ‘ripple effect’ on the button no longer works, its a real head scratcher
I don’t know what this is supposed to do/be like, but the error comes from the fact that it is looking for IDs panel-2 and panel-3 but they do not exist in the Inner HTML of the Tabbed Panel elements:
Basically this is just a test for an element of a larger project. I would like to use the Material design Lite library to add some components to my project such as this tabbed panel. However the ripple effect for each tab seen in the video works on one scene only so far and breaks when you navigate to another scene.
I cant see any issues other than the obvious that yourself and @DBear have pointed out, all of which are now fixed and the problem still persists. Perhaps an issue with the Classes but not sure ?
Its not the end of the world if this doesn’t work but if it’s a quick fix then I think it would be a nice feature to implement into my project.