Skip to content

Instantly share code, notes, and snippets.

@brian-mann
Created October 9, 2013 16:42
Show Gist options
  • Select an option

  • Save brian-mann/6904285 to your computer and use it in GitHub Desktop.

Select an option

Save brian-mann/6904285 to your computer and use it in GitHub Desktop.
Kendo Template Helpers
myTemplateHelpers = {
foo: "foo",
bar: function(){}
}
$("#something").kendoTreeView({
templateHelpers: myTemplateHelpers,
template: JST["path/to/template"] // this is a function
})
// inside of path/to/template
<div>
whatevs
</div>
<% this.treeview.templateHelpers %> // access the myTemplateHelpers object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment