Description

This doc will show you how to have your Ractive model run off of a Virtual Point that is dragged and dropped on top of the model.



Steps

Ractive Code

Template

{{#value}}
<div class="view-superman-value">
<label>{{idDis}}</label>
<br>
<label>{{navName}}: {{curVal}}{{unit}}</label>
</div>
{{/value}}

The first and last lines, {{#value}} and {{/value}} is what connects the data with the program.

Wherever there is {{ }} with a value inside, it is getting that value from the virtual point which will be dragged onto it

So in this example our model will show the id, navName, curVal and unit of the virtual point.

Next drag and drop a virtual point on top of your ractive component, from the virtual points menu on the left side.

Click preview and your done!