r.walde
(r.walde@podconsult.de Walde)
September 15, 2023, 8:58am
1
Hi,
I want to set a textField to visible(false) in onBeforeShow,
but it only hides the field and not the label.
When I use the property visible=“false” in the Descriptor it works fine.
And when I set it to visible=“false” I cannot make it visible in the controller any more.
.setVisible(“true”) does not work.
Is there an issue or do I oversee something?
KR
Roland
r.walde
(r.walde@podconsult.de Walde)
September 15, 2023, 9:47am
2
and now I noticed, that also setLabel does not work…
cannot change the label in the Controller, tried multiple handlers, init… beforeshow… ready…
r.walde
(r.walde@podconsult.de Walde)
September 15, 2023, 10:04am
3
all that strange behaviour only happens,
when I set the labelPosition to ‘aside’
if it is ‘top’ it works like expected
d.kremnev
(Dmitriy Kremnev)
September 15, 2023, 10:20am
4
Hi!
We were working on solving this problem.
In fact, when using labelPosition=ASIDE, it wraps the component in a formItem.
According to the vaadin documentation: Form Layout component | Vaadin components
Right now you can only take the parent [formItem] of the hidden component and hide it too.
You can take a lot more information from the issue: Redesign FormLayout component · Issue #2201 · jmix-framework/jmix · GitHub
Regards,
Dmitriy
r.walde
(r.walde@podconsult.de Walde)
September 15, 2023, 10:44am
5
thx for that… I will wait until the formItem can be used…