set_theme()

* Premium themes are currently available in phpGrid commercial licenses.

 

Note: starting version 6, you can set a global constant THEME in conf.php to change all of your datagrid themes.
X
  • Parameter(s):
    • $theme_name: Theme name
  • Description:
    • This is the phpGrid “Theme Roller”. phpGrid bundles the following themes from jQuery UI:
      • dot-luv
      • excite-bike
      • flick
      • overcast
      • pepper-grinder
      • redmond
      • smoothness
      • start
      • ui-darkness
      • ui-lightness
      • aristo ————– (Premium theme) *
      • cobalt ————– (Premium theme) *
      • cobalt-flat ——— (Premium theme) *
      • bootstrap ———– (Premium theme) *
    • The default theme is ‘start‘.
  • Remarks:
    • Both Bootstrap 3 and 4 (7.4.5+) themes are now supported with ‘bootstrap‘ or ‘bootstrap4
    • Bootstrap 5 theme is supported in version 7.5.5 with bootstrap5
  • Example:
1
$dg -> set_theme('flick');