如何向 Nativescript 滑块元素添加缩略图

问题描述

我在我的应用中使用 NativeScript 的滑块组件。我想在缩略图上方显示滑块的当前值。

<Label text="Value {{valueLabel}}" textwrap="true" ></Label>
<Slider
        (valueChange)="sliderValueChanged($event)"
        [value]="value"
        [minValue]=minValue
        [maxValue]=maxValue >
</Slider>

在 angular 中,可以将 ngstyle 应用于给定元素。

[ngStyle]={'left':value}

是否有可能以类似的方式将标签附加到滑块上?

实际

enter image description here

预期

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)