adding adminlte attributes

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
sticcino
User
Posts: 1043

adding adminlte attributes

Post by sticcino »

trying to add some addition attributes to the adminLTE class (v2020)

manual change to ewcfg works:
"NAVBAR_CLASS" => "main-header navbar navbar-expand border-bottom-0 text-sm nav-compact navbar-dark bg-primary bg-dark elevation-2",

but when trying to add to the userfn.php, doesn't appear to take.

func Page_Loading() {
global $CONFIG;


    $CONFIG["NAVBAR_CLASS"] .= ' border-bottom-0 text-sm nav-compact navbar-dark bg-primary bg-dark elevation-2' ;

}


arbei
User
Posts: 9406

Post by arbei »

You may use:

Config("NAVBAR_CLASS", "main-header navbar navbar-expand border-bottom-0 text-sm nav-compact navbar-dark bg-primary bg-dark elevation-2");

(See the topic Server Events and Client Scripts > Some Global Functions in the help file about the function.)


sticcino
User
Posts: 1043

Post by sticcino »

thanks!


Post Reply