Customized Command bar in Edit page #1867
Unanswered
LorenzoAlu
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can disable it using the model policies https://github.com/orchidsoftware/crud#policies |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everybody.
I am using
orchidsoftware/CRUD
package and it's awesome.I have a question.
Is there a way to customize the defaults command (Update, Delete model) in edit page?
let me explain.
I want do to enable/disable the delete default button based on a certain condition,
I can do that without create custom layout and screen?
Also I see that you can use, in your resource controller,
onDelete()
andonSave()
methods, but is there any way to control directly thedelete()
and 'save()' action?I would like make some check before
delete()
action and throw an exception, that I can see in frontend, in case of occurs errors.Thank you
Beta Was this translation helpful? Give feedback.
All reactions