You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/marketplace/platform-supported-content/modules/data-widgets/data-grid-2.md
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -248,7 +248,8 @@ The new data grid can trigger some events while iterating with it.
248
248
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.
249
249
250
250
### 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.
252
253
253
254
## Filters {#filters}
254
255
@@ -594,26 +595,31 @@ To achieve this behavior, set the **On click trigger** to **Double click**. When
594
595
595
596
When the button is placed in a grid header, the assigned action can receive the currently selected rows as a parameter.
596
597
597
-
#### How Selection is passed to Actions
598
+
#### How Selection is Passed to Actions
599
+
598
600
When a button placed in header triggers a **microflow** or **nanoflow**, the selected rows are passed as input:
599
601
600
602
- If **Single Selection** is enabled:
601
603
- The action receives a **single object**.
602
604
- If **Multiple Selection** is enabled:
603
605
- The action receives a **list of objects**.
604
606
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
606
610
607
-
#### Example use cases
608
611
-**Mark as Done**: A button triggers a microflow that updates the status of selected tasks.
609
612
-**Delete Selected**: A button deletes all selected records.
610
613
-**Export Selected**: A button triggers a microflow or nanoflow that exports the selected list to a file.
611
614
612
615
#### 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).
0 commit comments