Skip to content

Commit f830bdd

Browse files
authored
edit
1 parent c084cc1 commit f830bdd

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

  • content/en/docs/marketplace/platform-supported-content/modules/data-widgets

content/en/docs/marketplace/platform-supported-content/modules/data-widgets/data-grid-2.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ The new data grid can trigger some events while iterating with it.
248248
Triggers an action (such as a nanoflow, microflow, or Show page action) when the end-user clicks in one of the rows. It also adds a pointer cursor to signal that it is clickable. This function also complies with accessibility features and can be reached using only the keyboard.
249249

250250
### On Selection Change Action
251-
Triggers an action (such as a nanoflow, microflow, or client action) when the end-user changes the selection in the data grid. This includes selecting or deselecting individual rows, using the select all toggle, or clearing the selection. The action provides a way to respond to selection state changes and implement custom logic based on the current selection.
251+
252+
Triggers an action (such as a nanoflow, microflow, or client action) when the end-user changes selection in the data grid. This includes selecting or deselecting individual rows, using the **Select all** toggle, or clearing the selection. The action provides a way to respond to selection state changes and implement custom logic based on the current selection.
252253

253254
## Filters {#filters}
254255

@@ -594,26 +595,31 @@ To achieve this behavior, set the **On click trigger** to **Double click**. When
594595

595596
When the button is placed in a grid header, the assigned action can receive the currently selected rows as a parameter.
596597

597-
#### How Selection is passed to Actions
598+
#### How Selection is Passed to Actions
599+
598600
When a button placed in header triggers a **microflow** or **nanoflow**, the selected rows are passed as input:
599601

600602
- If **Single Selection** is enabled:
601603
- The action receives a **single object**.
602604
- If **Multiple Selection** is enabled:
603605
- The action receives a **list of objects**.
604606

605-
This allows developers to build logic that operates on one or many items.
607+
This allows developers to build logic that operates on one or several items.
608+
609+
#### Example Use Cases
606610

607-
#### Example use cases
608611
- **Mark as Done**: A button triggers a microflow that updates the status of selected tasks.
609612
- **Delete Selected**: A button deletes all selected records.
610613
- **Export Selected**: A button triggers a microflow or nanoflow that exports the selected list to a file.
611614

612615
#### Configuration
613-
1. Enable selection in the Data Grid 2 widget.
614-
2. Insert an Action Button into the Header.
615-
3. Configure the button to trigger a microflow or nanoflow.
616-
4. Set the input parameter of the flow to match the selection type (single object or list).
616+
617+
To configure selection, do the following:
618+
619+
1. Enable **Selection** in the data grid 2 widget.
620+
1. Insert an **Action Button** into the **Header**.
621+
1. Configure the button to trigger a microflow or nanoflow.
622+
1. Set the input parameter of the flow to match the selection type (single object or list).
617623

618624
## Keyboard Support {#keyboard-support}
619625

0 commit comments

Comments
 (0)