Js
class Js extends Asset (View source)
Properties
protected string | $id | from Asset | |
protected bool | $isLoadedOnRequest | from Asset | |
protected string | $package | from Asset | |
protected string|null | $path | from Asset | |
protected bool | $isAsync | ||
protected bool | $isDeferred | ||
protected bool | $isCore | ||
protected bool | $isNavigateOnce | ||
protected bool | $isModule | ||
protected array<string,string> | $extraAttributes | ||
protected Htmlable|null | $html |
Methods
string
getPublicPath()
No description
navigateOnce(bool $condition = true)
No description
bool
isAsync()
No description
bool
isDeferred()
No description
bool
isCore()
No description
bool
isNavigateOnce()
No description
bool
isModule()
No description
extraAttributes(array $attributes)
No description
Htmlable
getHtml()
No description
array
getExtraAttributes()
No description
string
getExtraAttributesHtml()
No description
string
getSrc()
No description
string
getRelativePublicPath()
No description
Details
in
Asset at line 18
final
__construct(string $id, string|null $path = null)
No description
in
Asset at line 24
static Asset
make(string $id, string|null $path = null)
No description
in
Asset at line 29
Asset
loadedOnRequest(bool $condition = true)
No description
in
Asset at line 36
string
getId()
No description
in
Asset at line 41
Asset
package(string $package)
No description
in
Asset at line 48
string
getPackage()
No description
in
Asset at line 53
string
getPath()
No description
in
Asset at line 58
bool
isRemote()
No description
in
Asset at line 63
string
getVersion()
No description
in
Asset at line 72
bool
isLoadedOnRequest()
No description
string
getPublicPath()
No description
Js
async(bool $condition = true)
No description
Js
defer(bool $condition = true)
No description
Js
core(bool $condition = true)
No description
Js
navigateOnce(bool $condition = true)
No description
Js
module(bool $condition = true)
No description
Js
html(Htmlable|null $html)
No description
bool
isAsync()
No description
bool
isDeferred()
No description
bool
isCore()
No description
bool
isNavigateOnce()
No description
bool
isModule()
No description
Js
extraAttributes(array $attributes)
No description
Htmlable
getHtml()
No description
array
getExtraAttributes()
No description
string
getExtraAttributesHtml()
No description
string
getSrc()
No description
string
getRelativePublicPath()
No description