Multiple Parametrization widths

Description of the limitation and why it is relevant to address

Hi, I met part of the team yesterday and we discussed this issue, I didn’t find any feature request so I’m opening one.

I find it weird that we can not set different Parametrization widths for different pages/steps.
Im my use case, I have 2 steps, first one is mainly inputs, and second one is mainly outputs, So I would need to emphasize on inputs in step 1 and on outputs in step 2, like this:


This is currently impossible as width is an argument of Parametrization
I think this is an issue for a lot of use cases

Submitter proposed design (optional)

Add a width argument to Page that would override the width argument in Parametrization
In my use case:

input_step = Step("Inputs", width=80, views=["get_param_viz"], on_next=validate_inputs)
...
res_step = Step("Optimization", width=20, views=["hiplot_viz"])

OR
Allow to use a list of ints for the argument width in Parametrization
In my use case:
parametrization = InputParametrization(width=[80,20])
That would fail in case the length of the list is not the same as the number of steps/pages

Current workarounds

No workaround, I deleted the first view

Thank you for your feedback !

Hi Leopold,

welcome to the community :slight_smile:
thanks for writing out a detailed feature request, i have added the request to our internal issue tracker

kind regards,
Matthijs

1 Like

Hi, it is now possible to set a specific width on a Page or Step using the latest SDK v14.7.0! Please see this guide for more info: Layout & styling - Pages | VIKTOR Documentation

1 Like