How to create mode in mendix Component

0
i need to create edit and view mode when i want edit then i can edit or when i want to view then view has been shown in boolean format so  i need to check can please help us how we can write in ract js code.  
asked
1 answers
0

Hi Sweta,

To implement Edit and View modes in a Data View, you can use a Boolean attribute to control conditional visibility. Create a helper object with a Boolean attribute,

Eg: IsEdit and use it as the data source for a Data View. Inside this Data View, add two nested Data Views: one set to Editable as Yes, visible only when IsEdit as true and another set to Editable as No, visible only when IsEdit as false. By toggling the value of IsEdit, you can seamlessly switch between Edit and View modes.

Let me know if you need further clarification!

answered