pui.removeCSS( path or css code )

pui.removeCSS( path or css code )



This function removes the Cascading Style Sheet added by pui.addCSS() or pui.loadCSS(). Ā The function can also remove CSS code embedded in or linked from the HTML template of the application.

Parameter:

  • path or css code - specifies the CSS path or the CSS code to remove; it must match the <link> reference or the entire <style> element contents in the document

Examples:

Removing CSS code

pui.removeCSS("INPUT.button { color: red }");

Removing CSS link

pui.removeCSS("/profoundui/userdata/css/myfile.css");