jquery - Dynamically Set data-filter-reveal Attribute in Filtering Table in JqueryMobile -


i adding data-filter-reveal attribute dynamically using javascript based on logic. can please me how refresh table / enhance widget when dynamically attribute set / changed.

i have tried below no luck.

$('.tableselector').table('refresh');  $('.tableselector').trigger('create'); 

please refer snippet in jsfiddle

you can use filterable widget options:

http://api.jquerymobile.com/filterable/#option-filterreveal

$('#togglerevealtrue').click(function () {     $( "#movie-table" ).filterable( "option", "filterreveal", true ); });  $('#togglerevealfalse').click(function () {     $( "#movie-table" ).filterable( "option", "filterreveal", false ); }); 

updated fiddle


Comments

Popular posts from this blog

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -