Skip to content

Adding customized HTML to a TremulaJS layout. #31

Description

@garris

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions