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 -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -