Caplin Trader 4.2.1

Class: module:br/services/html/BRHtmlResourceService

module:br/services/html/BRHtmlResourceService

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

(inner) getTemplate()

Gets the template by removing the template tag if needed.