function sap/ui/dom/includeStylesheet

Visiblity: public
Available since: N/A
Module: sap/ui/dom/includeStylesheet
Application Component:

Includes the specified stylesheet via a <link>-tag in the head of the current document. If there is call to includeStylesheet providing the sId of an already included stylesheet, the existing element will be replaced.


Parameters Overview

Param Type Default Value Description
vUrl string|object the URL of the stylesheet to load or a configuration object
vId? string|object id that should be used for the link tag or map of attributes
fnLoadCallback? function callback function to get notified once the stylesheet has been loaded
fnErrorCallback? function callback function to get notified once the stylesheet loading failed.

Methods Overview

Method Description