如何在经典 UI AEM 对话框中显示带有滑块字段值的工具提示?
How to display a tooltip with the value of a slider field in a Classic UI AEM dialog?
我在 dialog.xml
中使用 Slider xtype
是否可以自动显示此滑块的值?例如 - 就像值更改时的工具提示
<slider
jcr:primaryType="cq:Widget"
fieldLabel="Tile Background Transparency"
name="./slider"
width="{Long}200"
value="42"
increment="1"
minValue="0"
maxValue="100"
xtype="slider"/>
您可以使用提供此功能的 sliderfield
xtype。
useTips
属性 允许执行所需的行为。
<slider
jcr:primaryType="cq:Widget"
fieldLabel="Tile Background Transparency"
name="./slider"
width="{Long}200"
value="42"
increment="1"
useTips="true"
minValue="0"
maxValue="100"
xtype="sliderfield"/>
查看 the docs 了解更多信息。
我在 dialog.xml
是否可以自动显示此滑块的值?例如 - 就像值更改时的工具提示
<slider
jcr:primaryType="cq:Widget"
fieldLabel="Tile Background Transparency"
name="./slider"
width="{Long}200"
value="42"
increment="1"
minValue="0"
maxValue="100"
xtype="slider"/>
您可以使用提供此功能的 sliderfield
xtype。
useTips
属性 允许执行所需的行为。
<slider
jcr:primaryType="cq:Widget"
fieldLabel="Tile Background Transparency"
name="./slider"
width="{Long}200"
value="42"
increment="1"
useTips="true"
minValue="0"
maxValue="100"
xtype="sliderfield"/>
查看 the docs 了解更多信息。