Hi
Is there a way to define caption position “TOP” for attributes in the dynamic attributes panel? The approach below did not work:
Best,
Wern
Hi
Is there a way to define caption position “TOP” for attributes in the dynamic attributes panel? The approach below did not work:
Best,
Wern
Hello @werner.schnedl!
The dynamicAttributesPanel
is a composite component based on VBoxLayout
.The VBoxLayout
consists of a HboxLayout
for a category
and a Form
component for displaying attributes.
Using the following example, you can get a Form
component from dynamicAttributesPanel
and set a caption position:
@Inject
protected DynamicAttributesPanel customAttributesId;
@Subscribe
protected void onInit(InitEvent event) {
WebForm propertiesForm = (WebForm) customAttributesId.getComposition().getComponent("propertiesForm");
propertiesForm.setCaptionPosition(Form.CaptionPosition.TOP);
}
Regards,
Gleb