jQuery::addStylesheet PHP Method

addStylesheet() public method

Locate stylesheet file and add it to HTML's head section.
public addStylesheet ( string $file, string $ext = '.css', string $locate = 'css' )
$file string
$ext string
$locate string
    public function addStylesheet($file, $ext = '.css', $locate = 'css')
    {
        return $this->addStaticStylesheet($file, $ext, $locate);
    }

Usage Example

Example #1
0
 function addStylesheet($file, $ext = '.css', $template = false)
 {
     $url = $this->api->locateURL('css', $file . $ext);
     if (!$this->atk4_initialised || $template) {
         return parent::addStylesheet($file, $ext);
     }
     parent::addOnReady('$.atk4.includeCSS("' . $url . '")');
 }
All Usage Examples Of jQuery::addStylesheet