How do I dynamically set the width of DVL components?

Hi!

I’m trying to enter the width of the data viewr list element as a binding, but cant figure out if this has to be string or number. I set this as number and also tried with percentage but when i preview the app crashes.

Does anybody knows? I want to make a pyramid-ish data viewer list so depending on category the row has a rel width

Captura de pantalla 2021-03-14 a las 12.29.49

thanks for the help!

1 Like

Did you figure this out? I am having the same issue

1 Like

I don’t think that we can dynamically set the width of an element for the DVL either in blocks or as a bound value. What you could do is create a dvl custom layout that has several different elements. You could create one element for each width element that you plan to require. Then you could conditionally hide or show that component based on the desired width passed to the dvl. So in essence you would still pass a width value but instead of binding the width value to some width property you use the width value to conditionally show or hide the correct element.

2 Likes