Caplin Trader 4.0.3

Class: module:br/services/html/BRHtmlResourceService

module:br/services/html/BRHtmlResourceService

Summary

Provides access to HTML templates loaded via the HTML bundler. This is the default HtmlResourceService in BladeRunnerJS

Constructor

new module:br/services/html/BRHtmlResourceService(url)

Parameters:
Name Type Description
url String A URL to load HTML from.
Implements:

Methods

getHTMLTemplate(templateId) → {HTMLElement}

Access an HTML template by name.
Parameters:
Name Type Description
templateId String The identifier of the template that is required. Note that templates should be contained within a template tag (preferably).
Implements:
Returns:
Type
HTMLElement