Class Atk4\Ui\UserAction\JsCallbackExecutor

extends JsCallback
implements ExecutorInterface
uses HookTrait

Javascript Action executor.

Will execute a model action using a JS Event.

Usage: When use with View::on method, then JsCallbackExecutor executor is automatically create. $button->on('click', $model->getUserAction('delete'), [4, 'confirm' => 'This will delete record with ID 4. Are you sure?']);

Manual setup. $action = $model->getUserAction('delete') $ex = JsCallbackExecutor::addTo($app)->setAction($action, [4]) $button->on('click', $ex, ['confirm' => 'This will delete record with id 4. Are you sure?']);

Methods
Methods inherited from Atk4\Ui\JsCallback
setConfirm(), set(), terminateAjax(), getAjaxec(), getUrl(),
Methods inherited from Atk4\Ui\Callback
add(), init(), setUrlTrigger(), getUrlTrigger(), terminateJson(), isTriggered(), getTriggeredValue(), canTerminate(), canTrigger(), getJsUrl(),
Methods inherited from Atk4\Ui\AbstractView
getOwner()
Methods used from Atk4\Core\AppScopeTrait
assertInstanceOfApp(), issetApp(), getApp(), setApp()
Methods used from Atk4\Core\ContainerTrait
_uniqueElementName(), _addContainer(), removeElement(), _shorten(), getElement(), hasElement()
Methods used from Atk4\Core\InitializerTrait
isInitialized(), assertIsInitialized(), invokeInit()
Methods used from Atk4\Core\StaticAddToTrait
_addToAdd(), addTo(), addToWithCl(), addToWithClUnsafe()
Methods used from Atk4\Core\TrackableTrait
issetOwner(), setOwner(), unsetOwner(), getDesiredName(), destroy()
Methods used from Atk4\Core\HookTrait
_rebindHookFxToFakeInstance(), _unbindHookFxIfBoundToThis(), _rebindHooksIfCloned(), onHook(), onHookShort(), _makeHookDynamicFx(), onHookDynamic(), onHookDynamicShort(), hookHasCallbacks(), removeHook(), hook(), breakHook()
Constants inherited from Atk4\Ui\Callback
URL_QUERY_TRIGGER_PREFIX, URL_QUERY_TARGET
Properties
Properties inherited from Atk4\Ui\JsCallback
$args, $confirm, $apiConfig, $storeName, $triggerOnReload
Properties inherited from Atk4\Ui\Callback
$urlTrigger,
Properties inherited from Atk4\Ui\AbstractView
$_addLater, $_rendered, $elements
Properties used from Atk4\Core\AppScopeTrait
$_app, $maxNameLength, $uniqueNameHashes
Properties used from Atk4\Core\ContainerTrait
$_elementNameCounts
Properties used from Atk4\Core\InitializerTrait
$_initialized
Properties used from Atk4\Core\NameTrait
$name
Properties used from Atk4\Core\TrackableTrait
$_owner, $shortName
Properties used from Atk4\Core\HookTrait
$hooks, $_hookIndexCounter, $_hookOrigThis