Custom ListView in Worklight using Dojo

流过昼夜 提交于 2019-12-08 14:08:57

问题


I am working on a Worklight project, and I am trying to use custom listview. I use the Dojo toolkit to implement it, but it's not coming up to my expectations. Regarding design I am confuse. Here is my code:

<div id="bookmarks" data-dojo-type="dojox.mobile.ScrollableView">
    <h1 data-dojo-type="dojox/mobile/Heading">Some Heading</h1>

    <ul data-dojo-type="dojox.mobile.RoundRectList">
        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="label:'Item'"><button
    data-dojo-type="dojox.mobile.ToggleButton">Label</button></li>          
    </ul>
</div>

I want this type of listView which include image tag, icon tag and a checkbox in each list item


回答1:


Check out the Dojo documentation on ListItems for examples of adding built in options like icons.

dojotoolkit.org/reference-guide/1.8/dojox/mobile/ListItem.html#dojox-mobile-listitem

For more complex layout, such as the larger title, small sub-title, and timestamp, you can use span tags and css.



来源:https://stackoverflow.com/questions/15498936/custom-listview-in-worklight-using-dojo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!