1

I have to design my CQ5 dialog as given in the following image. I have designed almost all the dialog but unable to add simple two labels side by side highlighted as red. Can someone please suggest how I can achieve it in dialog.xml ? enter image description here

touseefkhan4pk
  • 473
  • 4
  • 26
  • Hello touseefkhan4pk, Can you please help me with, How you have set the checkbox horizontally, will be help, Thanks – yash Aug 04 '23 at 11:06

1 Answers1

1

There is label xtype from CQ Widget API with style property which you can use as follows:

<label_1
    jcr:primaryType="cq:Widget"
    style="width: 50%;display: inline;margin-left: 100px;font-weight: 600;"
    text="Use as default filter"
    xtype="label"/>
<label_2
    jcr:primaryType="cq:Widget"
    style="width: 50%;display: inline;margin-left: 40px;font-weight: 600;"
    text="Show Advanced Options"
    xtype="label"/>

You can change style according to your need.

enter image description here

Manisha Bano
  • 1,853
  • 2
  • 22
  • 34