Skip to content

Render: dropbutton

Build a HTML dropbutton element.

Fields

Machine name

Optionally define a machine name of this render element. It will be made available under that name in the render array of the current event in scope. Nested elements can be set with using "][" brackets, for example details][title.

Token name

Optionally define a token name of this render element. It will be made available under that token name for later usage.

Element weight

Optionally specify an element weight. The lower the weight, the element appears before other elements having a higher weight.

Build mode
Dropbutton type

A string defining a type of dropbutton variant for styling proposes. Renders as class "dropbutton--[type]".

Links

This field supports tokens, and optionally YAML if selected below.

Interpret above specified links as YAML format

Links can be specified as a list with YAML syntax. Example:
-
  title: Edit
  url: "/node/[node:nid]/edit/"
-
  title: Delete
  url: "/node/[node:nid]/delete"


When using tokens and YAML altogether, make sure that tokens are wrapped as a string. Example: title: "[node:title]"


Last update: February 5, 2023 16:14:51