Skip to content

Blog

What's New: APIv0.97.3

API 0.97.3

  • Support for SPA offline mode
    • New route GET /modules/[module]/resources/total
    • New route GET /modules/[module]/resources/lastUpdated

Release notes

trigger events from buttonbar buttons

You can now add buttons into lists. Those Buttons are able to trigger webhooks and pass identifying information to the event which enables you to pinpoint on what tuple (row) in the list the button was triggered.

See layout -> components -> Buttons in Lists for more Info.

trigger events from buttonbar buttons

You can modify the buttons in the button bar to trigger workflow events. If these events are triggered from buttons while a resource is edited (save, update and contiune, the buttons in /create and /edit) they will send the current data to the prototype output of the workflow event element.

Syntax:

{
"bakery_resource_module": "module_identifier",
"bakery_resource": {
"buttons": {
"button_key": {
"trigger": "event_identifier"
}
}
}
}

Button keys:

  • save for default ‘save’ button in create view
  • update for default ‘save’ button in update view
  • continue for default ‘save and continue’ button in update view
  • delete for default ‘delete` button in show view
  • edit for default ‘edit` button in show view
  • create for default ‘create’ button in index view

See layout -> components -> Customizing the default Buttons for more Info.

change button title

Es gibt nun die Möglichkeit Buttons in der Button bar einen anderen Titel zu geben. Dafür muss in der Moduldefinition in der bakery der key buttons hinzugefügt werden. Nun kann man für jeden Button Key den Titel festsetzen.

Syntax:

{
"bakery_resource_module": "module_identifier",
"bakery_resource": {
"buttons": {
"button_key": {
"title": <String>
}
}
}
}

Button keys:

  • save for default ‘save’ button in create view
  • update for default ‘save’ button in update view
  • continue for default ‘save and continue’ button in update view
  • delete for default ‘delete` button in show view
  • edit for default ‘edit` button in show view
  • create for default ‘create’ button in index view

See layout -> components -> Customizing the default Buttons for more Info.

hide buttons

Es gibt nun die Möglichkeit Buttons in der Button bar zu verstecken. Dafür muss in der Modul Definition in der bakery der key buttons hinzugefügt werden. Nun kann man für jeden Buttontyp die visibility festsetzen.

Syntax:

{
"bakery_resource_module": "module_identifier",
"bakery_resource": {
"buttons": {
"button_key": {
"display": <Boolean>
}
}
}
}

Button keys:

  • save for default ‘save’ button in create view
  • update for default ‘save’ button in update view
  • continue for default ‘save and continue’ button in update view
  • delete for default ‘delete` button in show view
  • edit for default ‘edit` button in show view
  • create for default ‘create’ button in index view

See layout -> components -> Customizing the default Buttons for more Info.