bitbake: toaster: tablejs Add an event handler to manually trigger a data reload

Allow users of ToasterTable to manually trigger a refresh of the data.
This can be useful if an action has happened in-page and the data is now
invalid. Such as new data being added or removed from the model.

(Bitbake rev: 6e42070d8abc80dacd8094c4f5019577453a9d49)

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Michael Wood
2015-10-27 19:11:01 +00:00
committed by Richard Purdie
parent 4c82878225
commit a92fc3025b

View File

@@ -671,6 +671,13 @@ function tableInit(ctx){
});
}
/* Allow pages to trigger reload event */
table.on('reload', function(e, newTableParams){
if (newTableParams)
loadData(newTableParams);
else
loadData(tableParams)
});
$(".get-help").tooltip({container:'body', html:true, delay:{show:300}});