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

c# - Binding a comma separated list to a List<int> in asp.net web api -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -