如何在“传统UI AEM”对话框中显示带有滑块字段值的工具提示? [英] How to display a tooltip with the value of a slider field in a Classic UI AEM dialog?

查看:87
本文介绍了如何在“传统UI AEM”对话框中显示带有滑块字段值的工具提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 dialog.xml

中使用Slider xtype是否可以自动显示此滑块的值?例如-值更改时的工具提示

Is it possible to automatically display the value of this slider? for example - like a tooltip when the value changes

<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提供了此功能。

You can use the sliderfield xtype which provides this functionality.

useTips 属性允许强制执行所需的行为。

The useTips property allows to enforce the desired behaviour.

<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"/>

查看文档以获取更多信息。

这篇关于如何在“传统UI AEM”对话框中显示带有滑块字段值的工具提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆