I create a list of elements with a knockout.js 'foreach', and want these to be enhanced to jQuery mobile buttons.
<div data-role="content" class="content">
<div id="buttonContainer" data-bind="foreach: buttons">
<div class="controllerButton" data-role="button">
<span class="buttonText" data-bind="text: label"></span>
</div>
</div>
</div>
Using jQuery mobile 1.3.2, this works fine. With the 1.4 alpha, jQuery mobile doesn't do anything to the elements.
(I'm aware I'm asking about an alpha without documentation, but certain features like panels outside of pages make the switch very attractive even at this point in time.)
As of jQuery Mobile 1.4
data-role=button
is deprecated and will be removed on 1.5. It is now replaced by adding classes directly to anchor. The main class isui-btn
which will convert an element into a button.HTML
JS