Edit an icon in children-form ??

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
lramirez
Veteran Member
Posts: 46
Joined: 2019-11-01 23:23

Edit an icon in children-form ??

Post by lramirez » 2021-06-15 18:07

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 ;)
1.png
1.png (32.64 KiB) Viewed 983 times
2.png
2.png (31.74 KiB) Viewed 983 times
3.png
3.png (29.85 KiB) Viewed 983 times
Luis Ramirez R.

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: Edit an icon in children-form ??

Post by pbottcher » 2021-06-15 18:32

Hi,

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.

lramirez
Veteran Member
Posts: 46
Joined: 2019-11-01 23:23

Re: Edit an icon in children-form ??

Post by lramirez » 2021-06-16 01:58

Thanks, I'll do some tests
Luis Ramirez R.

Post Reply