Hi Alex or Peter,

I'm building a MDL List from js:List

I configured a basic js:List example, and then make a copy to get the MDL
List with the basic changes. Then the example does not work anymore with
the following browser error:

dispatchEvent — EventDispatcher.js:70.   TypeError: null is not an object
(evaluating 'org.apache.flex.utils.Language.as(listView.host,
org.apache.flex.html.List).labelField')



This is the List example code:

<mdl:List id="list" width="130" labelField="label">
                    <js:dataProvider>
                        <fx:Array>
                            <fx:Object label="Install SIM Card"/>
                            <fx:Object label="Install SIM Card 1"/>
                            <fx:Object label="Install SIM Card 2"/>
                        </fx:Array>
                    </js:dataProvider>
                </mdl:List>


First, in basic js:List example I must declare labelField="label" in order
to work.
Then I expect that cloning this example to MDL should just work and then
iterate the changes to get MDL look and feel, but seems it's not as easy.

Hope you guys could point me to where is this failing :)

Thanks

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

Reply via email to