.data
property
The g-composer
data is accessible through the .data
property. This property is available to:
- external programs using the component (
document.querySelector('g-composer').data
) - template directives (
g-for="record of data"
). - functions defined as methods within the component (
$.data
).
You can manipulate the .data
object directly, and when a change occurs in this object, the SVG graphic will be automatically updated with the new data, keeping the view up to date at all times.