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
Built-in actions and widgets can have one or more properties. For example, Delay action has "Milliseconds" property and Label widget has "Text" property. This feature will allow the same for the user defined actions and widgets.
Add "User properties" list for the user defined actions and widgets:
Each User Property has the following fields:
Name: the name of the property. You can use this name in expressions, same as local variable for example.
Type: is the type of property.
Assignable: check this option if user action or widget can change the passed value so that change is visible from the caller flow. This means that you can't set any expression for this property, but only expressions in which value can be assigned/stored. For example, you can't set my_var + 1 expression, but you can set my_var expression.
Display name: This name is visible from the place where user action or widget is used (see below)
Description: This description is displayed in the place where user action or widget is used (see below)
Add expression field for each user property where user action or widget is used:
There is one important difference in user properties between action and widget. For the actions, properties are evaluated at the start of execution and for the widgets they are evaluated all the time - so it will be watched for the changes made in the page that contains user widget. This is same as for the built-in actions and widgets.
This feature should be available in the LVGL, Dashboard and EEZ-GUI projects.
The text was updated successfully, but these errors were encountered:
#include "eez-flow.h"
#include "actions.h"
void action_my_native_user_action(lv_event_t *e) {
using namespace eez;
using namespace eez::flow;
Value a = getUserProperty(ACTION_MY_NATIVE_USER_ACTION_PROPERTY_A);
Value b = getUserProperty(ACTION_MY_NATIVE_USER_ACTION_PROPERTY_B);
setUserProperty(ACTION_MY_NATIVE_USER_ACTION_PROPERTY_RESULT, Value(a.getInt32() + b.getInt32(), VALUE_TYPE_INT32));
}
Built-in actions and widgets can have one or more properties. For example, Delay action has "Milliseconds" property and Label widget has "Text" property. This feature will allow the same for the user defined actions and widgets.
Add "User properties" list for the user defined actions and widgets:
Each User Property has the following fields:
my_var + 1
expression, but you can setmy_var
expression.Add expression field for each user property where user action or widget is used:
There is one important difference in user properties between action and widget. For the actions, properties are evaluated at the start of execution and for the widgets they are evaluated all the time - so it will be watched for the changes made in the page that contains user widget. This is same as for the built-in actions and widgets.
This feature should be available in the LVGL, Dashboard and EEZ-GUI projects.
The text was updated successfully, but these errors were encountered: