/** * Author: Thilina Hasantha */ /** * SettingAdapter */ function SettingAdapter(endPoint,tab,filter,orderBy) { this.initAdapter(endPoint,tab,filter,orderBy); } SettingAdapter.inherits(AdapterBase); SettingAdapter.method('getDataMapping', function() { return [ "id", "name", "value", "description" ]; }); SettingAdapter.method('getHeaders', function() { return [ { "sTitle": "ID" ,"bVisible":false}, { "sTitle": "Name" }, { "sTitle": "Value"}, { "sTitle": "Details"} ]; }); SettingAdapter.method('getFormFields', function() { return [ [ "id", {"label":"ID","type":"hidden"}], [ "value", {"label":"Value","type":"text","validation":"none"}] ]; }); SettingAdapter.method('getActionButtonsHtml', function(id,data) { var html = '
