For example, in Task entity, there link that says, 'Create Task' (<a href="#Task/create">). Is it possible to disable that in general? And is it possible to enable it based on the status/field (in another Entity). If so, can it also be done for an entity created from entityManager?
Announcement
Collapse
No announcement yet.
Disable 'Create EntityName' in general or based on status/field in another entity?
Collapse
X
-
I know directory, "Views.List" is responsible for the e.g. (<a href="#Task/create">). I created a list js file, then added "Views.List" and "Views.Main" as dependencies. I inherited the setup and setupcreatebutton function. In the console, I ran a test to see if I can get the array of objects the dev pushed onto this.menu.buttons, and was a success. Is there a way to push another property such as,PHP Code:this.menu.buttons.unshift({
onClick: "return false;"
//not sure if onClick: "return false;" is allowed
});
PHP Code:delete this.menu.buttons[0].onClick
//or
this.menu.buttons[0].onClick = "return true;"
Last edited by worldmiros; 03-23-2016, 08:58 PM.
Comment