Closed romaninsh closed 6 years ago
Added support for 'columnActions':
$app->layout->add(new \atk4\mastercrud\MasterCRUD()) ->setModel(new \saasty\Model\App($app->db), [ 'columnActions'=>[ 'repair'=>'wrench', ], 'Models'=>[ 'columnActions'=>[ 'migrate'=>'database', ], 'Fields'=>[ 'ValidationRules'=>[], ], 'Relations'=>[ 'ImportedFields'=>[], ], ],
there are various invocation methods allowing you to specify icon, label, custom callbacks etc.
This also adds "MethodInvocator" - a view which asks you for arguments and then executes them.
This next example will use form to ask for an email, which will then be passed as argument to sendEmail($email)
[ 'columnActions'=>[ 'sendEmail' => ['icon'=>'wrench', 'email'=>'string'] ] ]
Looks and works good. I think this can be merged in.
Added support for 'columnActions':
there are various invocation methods allowing you to specify icon, label, custom callbacks etc.
This also adds "MethodInvocator" - a view which asks you for arguments and then executes them.
This next example will use form to ask for an email, which will then be passed as argument to sendEmail($email)