Created
November 14, 2022 12:44
-
-
Save gridphp/8b164d1e39275eaa7949ef00458cec31 to your computer and use it in GitHub Desktop.
View dialog header and footer text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$opt["view_options"]["beforeShowForm"] = "function(){ | |
var header = 'Top text'; | |
var footer = 'Bottom text'; | |
$('.EditTable:first').parent().prepend('<div>'+header+'</div>'); | |
$('.EditTable:last').parent().append('<div>'+footer+'</div>'); | |
}"; | |
$g->set_options($opt); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment