adaptlearning / adapt-contrib-narrative

A component that displays an image gallery with accompanying text
GNU General Public License v3.0
5 stars 39 forks source link

Items model #170

Closed lc-thomasberger closed 6 years ago

lc-thomasberger commented 7 years ago

_isActive attribute is added to _items Array. This attributes are managed by funcitons defined in the itemsModel. The setter functions trigger a change event change_items:_isActive. Views listen to this event and hande Dom updates. Plugins can use the functions on the itemsModel to manipulate the state of the Component.

oliverfoster commented 7 years ago

please do not merge until @tomgreenfield comes back with review

lc-thomasberger commented 6 years ago

close this one in favor for https://github.com/adaptlearning/adapt-contrib-narrative/pull/179