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

__construct(string $id, string|null $path = null)

No description

from  Asset
static Asset
make(string $id, string|null $path = null)

No description

from  Asset
loadedOnRequest(bool $condition = true)

No description

from  Asset
string
getId()

No description

from  Asset
package(string $package)

No description

from  Asset
string
getPackage()

No description

from  Asset
string
getPath()

No description

from  Asset
bool
isRemote()

No description

from  Asset
string
getVersion()

No description

from  Asset
bool
isLoadedOnRequest()

No description

from  Asset
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

Details

final __construct(string $id, string|null $path = null)

No description

Parameters

string $id
string|null $path

static Asset make(string $id, string|null $path = null)

No description

Parameters

string $id
string|null $path

Return Value

Asset

Asset loadedOnRequest(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Asset

string getId()

No description

Return Value

string

Asset package(string $package)

No description

Parameters

string $package

Return Value

Asset

string getPackage()

No description

Return Value

string

string getPath()

No description

Return Value

string

bool isRemote()

No description

Return Value

bool

string getVersion()

No description

Return Value

string

bool isLoadedOnRequest()

No description

Return Value

bool

string getPublicPath()

No description

Return Value

string

Js async(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Js

Js defer(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Js

Js core(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Js

Js navigateOnce(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Js

Js module(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Js

Js html(Htmlable|null $html)

No description

Parameters

Htmlable|null $html

Return Value

Js

bool isAsync()

No description

Return Value

bool

bool isDeferred()

No description

Return Value

bool

bool isCore()

No description

Return Value

bool

bool isNavigateOnce()

No description

Return Value

bool

bool isModule()

No description

Return Value

bool

Js extraAttributes(array $attributes)

No description

Parameters

array $attributes

Return Value

Js

Htmlable getHtml()

No description

Return Value

Htmlable

array getExtraAttributes()

No description

Return Value

array

string getExtraAttributesHtml()

No description

Return Value

string

string getSrc()

No description

Return Value

string

string getRelativePublicPath()

No description

Return Value

string