src/CRUD.php
public function jsSave($notifier)
    {
        return [
            // close modal
            new jsExpression('$(".atk-dialog-content").trigger("close")'),

            // display notification
            $this->factory($notifier),

            // reload Grid Container.
            $this->container->jsReload([$this->name.'_sort' => $this->getSortBy()]),
        ];
    }
public function jsSave($notifier)
    {
        return [
            // close modal
            new jsExpression('$(".atk-dialog-content").trigger("close")'),

            // display notification
            $this->factory($notifier),

            // reload Grid Container.
            $this->container->jsReload([$this->name.'_sort' => $this->getSortBy()]),
        ];
    }
public function jsSave ( $ notifier ) { return [ // close modal new jsExpression ( '$(".atk-dialog-content").trigger("close")' ) , // display notification $ this -> factory ( $ notifier ) , // reload Grid Container. $ this -> container -> jsReload ( [ $ this -> name . '_sort' => $ this -> getSortBy ( ) ] ) , ] ; }
Default js action when saving form.

@throws \atk4\core\Exception

@return array
Default js action when saving form .