mirror of
https://git.yoctoproject.org/poky
synced 2026-05-05 20:27:58 +02:00
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:
committed by
Richard Purdie
parent
4c82878225
commit
a92fc3025b
@@ -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}});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user