Flow: How to read a value from some Flow instance?
This blog post describes an approach on reading a value from an instance of Flow component in Total.js controller.
Flow: How to read a value from an instance of Flow component?
Total.js Flow is really great tool and this tutorial shows you how you can get an instance of component from Total.js Flow directly in a controller.
Follow these steps:
- create your own flow with
analytics
component - double-click on
analytics
component and type a reference tomystats
and press save (as the picture below)
Then create a controller controllers/default.js:
Where can I read all public methods from Flow components?
- Download Flow Components repository
- open each component to see all public methods (defined as
instance.custom.<method-name>
)
Another helpful FLOW methods
Other posts from Total.js Platform
- 2024-11-01NEWOctober report 2024
- 2024-10-22Performance Testing: Total.js vs. NestJS
- 2024-10-01September report 2024
- 2024-09-27Total.js UI Builder: #2 designing your first interface
- 2024-09-26Total.js V5: Middlewares
- 2024-09-23Beginner Guide to Total.js UI: # 05 Client-side routing
- 2024-09-23Total.js UI #4: Data Binding (Part 2 – Practical Example)
- 2024-09-20Introduction to Total.js UI Builder: A Beginner’s Guide
- 2024-09-13Total.js v5: #06 Understanding File Routing
- 2024-09-09Total.js v5: Defining Routes for Internal Errors