Good morning to the appgini community
I want to change an edit icon of the child-forms like
show the example in the picture ...
my problem is that this is how it looks, when reloading another change
to the application, it is modified in the folder: /.../templates/children-f.php
Question: can you put some code in "hooks/" to keep this modification without changing it when re-generating the appgini.
Thanks
Edit an icon in children-form ??
Edit an icon in children-form ??
Luis Ramirez R.
Re: Edit an icon in children-form ??
Hi,
you can try to put the code into the hooks/TABLENAME-dv.js file
you can try to put the code into the hooks/TABLENAME-dv.js file
Code: Select all
$j(function() {
function wait_for(data,callback,time=100) {
if($j(data).length != 0) {
callback();
return;
}
else {
setTimeout(function() {
wait_for(data,callback, time);
}, time);
}
}
wait_for('.table-striped',function() {
var a=$j('.glyphicon-new-window')
a.after('YOURBUTTONCODEHERE')
$j('.glyphicon-new-window').remove()
})
})
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.