trait HasAssets

Properties

static array $script
static array $deferredScript
static array $style
static array $css
static array $js
static array $html
static array $headerJs
static string $manifest
static array $manifestData
static array $min
static array $baseCss
static array $baseJs
static string $jQuery
static array $minifyIgnores

Methods

static array|Factory|View
css(null $css = null, bool $minify = true)

Add css or get all css.

static array|null
baseCss(null $css = null, bool $minify = true)

No description

static array|Factory|View
js(null $js = null, bool $minify = true)

Add js or get all js.

static array|Factory|View
headerJs(null $js = null)

Add js or get all js.

static array|null
baseJs(null $js = null, bool $minify = true)

No description

static 
ignoreMinify(string $assets, bool $ignore = true)

No description

static array|Factory|View
script(string $script = '', bool $deferred = false)

No description

static array|Factory|View
style(string $style = '')

No description

static array|Factory|View
html(string $html = '')

No description

static mixed
getManifestData(string $key)

No description

static bool|mixed
getMinifiedCss()

No description

static bool|mixed
getMinifiedJs()

No description

string
jQuery()

No description

static 
component($component, $data = [])

No description

Details

at line 110
static array|Factory|View css(null $css = null, bool $minify = true)

Add css or get all css.

Parameters

null $css
bool $minify

Return Value

array|Factory|View

at line 133
static array|null baseCss(null $css = null, bool $minify = true)

No description

Parameters

null $css
bool $minify

Return Value

array|null

at line 156
static array|Factory|View js(null $js = null, bool $minify = true)

Add js or get all js.

Parameters

null $js
bool $minify

Return Value

array|Factory|View

at line 180
static array|Factory|View headerJs(null $js = null)

Add js or get all js.

Parameters

null $js

Return Value

array|Factory|View

at line 195
static array|null baseJs(null $js = null, bool $minify = true)

No description

Parameters

null $js
bool $minify

Return Value

array|null

at line 210
static ignoreMinify(string $assets, bool $ignore = true)

No description

Parameters

string $assets
bool $ignore

at line 223
static array|Factory|View script(string $script = '', bool $deferred = false)

No description

Parameters

string $script
bool $deferred

Return Value

array|Factory|View

at line 253
static array|Factory|View style(string $style = '')

No description

Parameters

string $style

Return Value

array|Factory|View

at line 273
static array|Factory|View html(string $html = '')

No description

Parameters

string $html

Return Value

array|Factory|View

at line 287
static protected mixed getManifestData(string $key)

No description

Parameters

string $key

Return Value

mixed

at line 304
static protected bool|mixed getMinifiedCss()

No description

Return Value

bool|mixed

at line 316
static protected bool|mixed getMinifiedJs()

No description

Return Value

bool|mixed

at line 328
string jQuery()

No description

Return Value

string

at line 336
static component($component, $data = [])

No description

Parameters

$component
$data