Skip to content

Commit 82a68fa

Browse files
committed
Actions into H3
1 parent af033f0 commit 82a68fa

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

docs/ff-concepts/adding-customization/code-file.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,7 @@ You can use custom class fields to display values directly in the UI, and call i
192192

193193
![access-fields-methods.avif](imgs/access-fields-methods.avif)
194194

195-
### Call In Action Flows
196-
197-
You can also set fields and call methods of your custom classes directly within an Action Flow. This is useful when you want to update data or trigger custom logic as part of your app's behavior.
198-
199-
#### Set Field [Action]
195+
### Set Field [Action]
200196

201197
Use the **Set Field** action to update a specific property of a custom class instance. For example, you can set `order.status = 'shipped'` when a user confirms an order, allowing the UI to reflect the change immediately.
202198

@@ -226,7 +222,7 @@ Use the **Set Field** action to update a specific property of a custom class ins
226222
</div>
227223
<p></p>
228224

229-
#### Call Method [Action]
225+
### Call Method [Action]
230226

231227
Use the **Call Method** action to invoke a method defined in your custom class. For instance, if your `Comment` class has a `markHelpful()` method, you can trigger it when a user taps a “Helpful” button to record the interaction.
232228

@@ -317,11 +313,7 @@ You can access the static class data and methods directly via the ****Set from V
317313

318314
![static-class-methods.avif](imgs/static-class-methods.avif)
319315

320-
### Call Static Classes in Action Flows
321-
322-
You can interact with static classes directly in an Action Flow using both the **Set Field** and **Call Method** actions. Static methods and fields belong to the class itself, not to a specific instance, which makes them perfect for utilities, configuration helpers, or global logic.
323-
324-
#### Set Static Field [Action]
316+
### Set Static Field [Action]
325317

326318
Use the **Set Static Field** action to update a static field on a custom class. For example, if you have a class `MathHelper` with a static field `amount`, you can set it using an input value when a user enters a price. This allows you to store that value globally and use it across different calculations.
327319

@@ -352,7 +344,7 @@ Use the **Set Static Field** action to update a static field on a custom class.
352344
</div>
353345
<p></p>
354346

355-
#### Call Static Method [Action]
347+
### Call Static Method [Action]
356348

357349
Use the **Call Static Method** action to run a static method of your class. For instance, you can call `Logger.logEvent('user_login')` from an analytics helper class when a login action is triggered, without needing to create an instance of the class.
358350

0 commit comments

Comments
 (0)