trait CanDispatchEvent (View source)

Properties

protected string|Closure|null $event
protected array $eventData
protected string|bool $dispatchDirection
protected string|null $dispatchToComponent

Methods

dispatch(string|Closure|null $event, array|Closure $data = [])

No description

dispatchSelf(string|Closure|null $event, array|Closure $data = [])

No description

dispatchTo(string $component, string|Closure|null $event, array|Closure $data = [])

No description

emit(string|Closure|null $event, array|Closure $data = []) deprecated

No description

emitSelf(string|Closure|null $event, array|Closure $data = []) deprecated

No description

emitTo(string $component, string|Closure|null $event, array|Closure $data = []) deprecated

No description

string|null
getEvent()

No description

eventData(array|Closure $data)

No description

array
getEventData()

No description

string|bool
getDispatchDirection()

No description

string|null
getDispatchToComponent()

No description

Details

CanDispatchEvent dispatch(string|Closure|null $event, array|Closure $data = [])

No description

Parameters

string|Closure|null $event
array|Closure $data

Return Value

CanDispatchEvent

CanDispatchEvent dispatchSelf(string|Closure|null $event, array|Closure $data = [])

No description

Parameters

string|Closure|null $event
array|Closure $data

Return Value

CanDispatchEvent

CanDispatchEvent dispatchTo(string $component, string|Closure|null $event, array|Closure $data = [])

No description

Parameters

string $component
string|Closure|null $event
array|Closure $data

Return Value

CanDispatchEvent

CanDispatchEvent emit(string|Closure|null $event, array|Closure $data = []) deprecated

deprecated Use `dispatch()` instead.

No description

Parameters

string|Closure|null $event
array|Closure $data

Return Value

CanDispatchEvent

CanDispatchEvent emitSelf(string|Closure|null $event, array|Closure $data = []) deprecated

deprecated Use `dispatchSelf()` instead.

No description

Parameters

string|Closure|null $event
array|Closure $data

Return Value

CanDispatchEvent

CanDispatchEvent emitTo(string $component, string|Closure|null $event, array|Closure $data = []) deprecated

deprecated Use `dispatchTo()` instead.

No description

Parameters

string $component
string|Closure|null $event
array|Closure $data

Return Value

CanDispatchEvent

string|null getEvent()

No description

Return Value

string|null

CanDispatchEvent eventData(array|Closure $data)

No description

Parameters

array|Closure $data

Return Value

CanDispatchEvent

array getEventData()

No description

Return Value

array

string|bool getDispatchDirection()

No description

Return Value

string|bool

string|null getDispatchToComponent()

No description

Return Value

string|null