Created
March 12, 2014 19:29
-
-
Save kparms/9514491 to your computer and use it in GitHub Desktop.
Reflow: Refresh Examples and Fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From the example on: http://view.jquerymobile.com/1.3.1/dist/demos/examples/tables/reflow-refresh.html | |
You must refresh your table and use .trigger('create') to avoid the duplicated label | |
try to use this : | |
var row = "<tr><td></td></tr>" | |
$("#YourTable").append(row); | |
$("#YourTable").trigger("create"); | |
$("#YourTable").table("refresh"); | |
if you have a loop try to use : | |
for() | |
{ | |
var row = "<tr><td></td></tr>" | |
$("#YourTable").append(row); | |
} | |
$("#YourTable").trigger("create"); | |
$("#YourTable").table("refresh"); | |
http://stackoverflow.com/questions/17586494/jquery-mobile-reflow-table-refresh-issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment