Add custom states to WeWeb elements

Описание к видео Add custom states to WeWeb elements

Learn how to add a custom state to a WeWeb element and apply it to the children of that element.

In this video:
we have a list of 3 price plans (3 flexboxes)
when a user clicks on one of the flexboxes, we trigger a workflow to update a variable with the plan name
on each flexbox, we have a custom state that is activated when the selectedPlan variable matches the plan name. when the selected state is activated on the flexbox, its background color changes
on the button inside each flexbox, we have a custom state that is activated when the selected state is activated on the parent flexbox. the background color of the button changes based on the state

Комментарии

Информация по комментариям в разработке