Skip to content

Commit 5174219

Browse files
committed
Update order of actions
1 parent a2d1e41 commit 5174219

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

docs/declarative-customization/formatting-syntax-reference.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,21 @@ See [here](./column-formatting.md#formatting-multi-value-fields) for examples.
312312
- **delete**: Clicking the button will open the delete confirmation dialog.
313313
- **editProps**: Clicking the button will open the item properties page in edit mode.
314314
- **openContextMenu**: Clicking the button will open the item's default context menu.
315+
- **setValue**: Clicking the element will update the item with the field values provided.
316+
317+
```JSON
318+
{
319+
"elmType": "div",
320+
"txtContent": "[$FieldName]",
321+
"customRowAction":{
322+
"action": "setValue",
323+
"actionInput": {
324+
"FieldInternalName_1": "FieldValue_1",
325+
"FieldInternalName_2": "FieldValue_2",
326+
}
327+
}
328+
}
329+
```
315330
- **executeFlow**: Clicking the button will launch the specified Flow, specified by ID inside the `actionParams` attribute. For an example of this, see [Create a button to launch a Flow](./formatting-advanced.md#create-a-button-to-launch-a-flow). Below is an example of this type of button.
316331

317332
```JSON
@@ -331,22 +346,6 @@ The `actionParams` attribute can have the following options when using the `exec
331346
- **headerText**: Sets the text at the top of the flow panel _(optional)_
332347
- **runFlowButtonText**: Sets the text of the primary button in the flow panel _(optional)_
333348

334-
- **setValue**: Clicking the element will update the item with the field values provided.
335-
336-
```JSON
337-
{
338-
"elmType": "div",
339-
"txtContent": "[$FieldName]",
340-
"customRowAction":{
341-
"action": "setValue",
342-
"actionInput": {
343-
"FieldInternalName_1": "FieldValue_1",
344-
"FieldInternalName_2": "FieldValue_2",
345-
}
346-
}
347-
}
348-
```
349-
350349
## customCardProps
351350

352351
Add a custom card to the element, that shows up on hover or click event. Following customization is available -

0 commit comments

Comments
 (0)