Form buttons

Form attributes related to form buttons

The default values are set in the config file

protected function formAttr(): array
{
    return [
        'showSave' => true,
        'showDelete' => true,
        'showReset' => true,
        'showGoBack' => true,
        'saveStayBtnTxt' => 'tf::form.save-and-stay',
        'saveBackBtnTxt' => 'tf::form.save-go-back',
        'onKeyDownEnter' => 'saveAndStay', //method to run on form submit
    ]
}

Last updated