DUF: Declarative Ugly Forms  v0.1-94-g0b7957c
 All Classes Functions Variables Pages
Static Public Member Functions | Static Protected Member Functions | List of all members
ItemActions Class Reference

Render links to actions of group item. More...

Inheritance diagram for ItemActions:
Inheritance graph

Static Public Member Functions

static renderWidget (\Duf::Form $form, $template_engine, $widget_conf)
 Render the widget. More...
 

Static Protected Member Functions

static renderActions ($widget_conf, $actions, $item, $action_names)
 
static renderAction ($action_name, $action, $item)
 

Detailed Description

Render links to actions of group item.

Expects 'item_actions' option specified in group configuration.

Example – fragment of field group configuration:

"item_actions": {
    "action": {
        "label": "Action label",
        "link": "/type/{id}!action"
    }
}

Member Function Documentation

static renderWidget ( \Duf::Form  $form,
  $template_engine,
  $widget_conf 
)
static

Render the widget.

Parameters
$formis the Form.
$template_engineis templating engine which may be used for rendering (optional).
$widget_confis configuration of the widget. It must contain `'#!'` key to determine next renderer.

Implements IWidgetRenderer.