Closed yajra closed 2 months ago
Editor::macro('focusOnOpen', function (string $field) { /** @var Editor $this */ $this->onOpen("function() { $('#DTE_Field_{$field}').focus(); }"); return $this; }); Editor::macro('submitOnReturn', function (string|bool $action = 'submit') { /** @var Editor $this */ $this->formOptionsMain(['onReturn' => $action]); return $this; });
Editor::make() ->ajax(route('accounts.store', $this->account)) ->submitOnReturn(false) ->focusOnOpen('amount')
Failed conditions C Maintainability Rating on New Code (required ≥ A)
See analysis details on SonarCloud
Catch issues before they fail your Quality Gate with our IDE extension SonarLint
Usage
Use Case