trait CanBeCopied (View source)

Traits

Properties

protected bool|Closure $isCopyable from  CanBeCopied
protected string|Closure|null $copyableState from  CanBeCopied
protected string|Closure|null $copyMessage from  CanBeCopied
protected int|Closure|null $copyMessageDuration from  CanBeCopied

Methods

copyable(bool|Closure $condition = true)

No description

copyableState(string|Closure|null $state)

No description

copyMessage(string|Closure|null $message)

No description

copyMessageDuration(int|Closure|null $duration)

No description

bool
isCopyable(mixed $state)

No description

string|null
getCopyableState(mixed $state)

No description

string
getCopyMessage(mixed $state)

No description

int
getCopyMessageDuration(mixed $state)

No description

bool
isClickDisabled()

No description

Details

CanBeCopied copyable(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeCopied

CanBeCopied copyableState(string|Closure|null $state)

No description

Parameters

string|Closure|null $state

Return Value

CanBeCopied

CanBeCopied copyMessage(string|Closure|null $message)

No description

Parameters

string|Closure|null $message

Return Value

CanBeCopied

CanBeCopied copyMessageDuration(int|Closure|null $duration)

No description

Parameters

int|Closure|null $duration

Return Value

CanBeCopied

bool isCopyable(mixed $state)

No description

Parameters

mixed $state

Return Value

bool

string|null getCopyableState(mixed $state)

No description

Parameters

mixed $state

Return Value

string|null

string getCopyMessage(mixed $state)

No description

Parameters

mixed $state

Return Value

string

int getCopyMessageDuration(mixed $state)

No description

Parameters

mixed $state

Return Value

int

bool isClickDisabled()

No description

Return Value

bool