Skip to content
New issue

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

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

Already on GitHub? # to your account

Adding customized HTML to a TremulaJS layout. #31

Open
garris opened this issue Aug 17, 2015 · 0 comments
Open

Adding customized HTML to a TremulaJS layout. #31

garris opened this issue Aug 17, 2015 · 0 comments

Comments

@garris
Copy link
Owner

garris commented Aug 17, 2015

This is another common question I've gotten on twitter. Here is a quick response...

Look in the gh-pages-demo directory and look at tremulaAdapters.js file.   On line 15, see the template property … that’s the guy you want.  You can add any html there and you can add your own method to that file to process your own data stream with your own properties.  You can arbitrarily add dynamic data by directly injecting (or find and replacing) DOM in your template.   You can see a complex example of this by looking at /src/DataAdatpers.js   see the block starting at line 79 this.template = …

Please post here with specific questions.

GS

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant