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
Post a Comment