AutoText
HTML element text content bound to model entities using HTML data attributes. Any html element can be linked with a scalar, parameter or one element of an array.
Use of the data-entity, data-parameter and data-indices attributes on HTML elements directly in the HTML markup links the element to the model entity.
constructor
Constructor
Create a new AutoText component.
Parameters:
params
Name | Type | Description |
---|---|---|
selector |
type
string | jQuery |
JQuery selector string or jquery elements collection identifying the UI elements to process |
scenario |
type
Scenario |
The scenario to use when binding entities |
details
Example
examples
var text = new insight.components.AutoText('node-selector', aScenario);