> Ugh.  SimpleList got ruined in the back port from JS to AS.
>
>
So maybe I should wait for some fix on this component?


> It occurred to me though that both SimpleList and List/ListBase are going
> to be oriented towards the "ItemRenderer Factory" API.  In such a case,
> there is a dataProvider and for List you specify a template (an
> ItemRenderer) and a factory and the children are generated by the factory.
>  For MDL, do you want to do the same thing or make it more like generic
> HTML lists where you have to explicitly specify each child.  IMO, a
> generic HTML List of ul/li tags essentially means there is no template.
> The contents of each li tag can have a completely different structure.
>
> Thoughts?
> -Alex
>
>
I think List should support both, a dataProvider that gives data and you
could have an factory
that created one kind of item renderers or more that one (in old flex sdk
we could have one item renderer in different rows (and in data grid by cell)

If you check the MDL List example page here:
https://getmdl.io/components/index.html#lists-section
you could see this structure:

<ul class='mdl-list'> <li class="mdl-list__item"> <span class="
mdl-list__item-primary-content"></span> </li> <li class="mdl-list__item"> <
span class="mdl-list__item-primary-content"></span> </li> <li class="
mdl-list__item"> <span class="mdl-list__item-primary-content"></span> </li>
</ul>

So I think the List should provide the ul and has an the user should create
his own item renderer with provided pieces (more common) and his own made
pieces.



-- 
Carlos Rovira
http://about.me/carlosrovira

Reply via email to