Custom JS and CSS insert


(Bogdan Costin) #1

Hi,
Can someone please provide an example regarding how to add custom CSS and JS into the PHP files.
I’ve looked at the documentation but beside the (see including JS) there is no info.

Maybe I’ve missed the part where it is specified on how to add filles into the header of the view. so I’ll thank you for a point in the good direction :smile:

BR
Bogdan


(Alessio Fattorini) #2

Hope @davidep or @giacomo @Stll0 could help you when they’ll come back available.


(Giacomo Sanchietti) #3

The NethGUI framework is poorly documented but I can link some code here.

Basically, you have 3 functions:

  • useFile: include a js file
  • includeCSS: include a CSS fragment
  • includeJavascript: include a JS fragment

Just an exemple: