lundi 15 septembre 2014

How to: Store-based list of Components or "Dataview meets Container"

Hi there! Long time listener, first time poster here.

Is there a recommended approach to render a list of Components based on the contents of a store?


Imagine you have the perfect component for rendering a model; how to I show a list of these?


A Container allows configuration of items and layout, to show a set of Components in a particular positioning, but cannot be bound to a store, and


A Dataview allows configuration of tpl and store to render a template/html based on the contents of a store (and updating the view when the store changes), but doesn't instantiate components.


Is there a way to render a list of Components based on a store, without resorting to duplicating code that was already written in either Dataview or Container?

The result may be equivalent to a headerless single-column grid that renders widgets, but that is heavier/slower than what I'd expect the combination of a Dataview with a Container to be.






How to: Store-based list of Components or "Dataview meets Container"

Aucun commentaire:

Enregistrer un commentaire