amis icon indicating copy to clipboard operation
amis copied to clipboard

dynamic input-range

Open SergShulga opened this issue 10 months ago • 1 comments

Input-range is a nice element, but has static min\max values.

This notation is unacceptable

amis_filter_item = {
            "type": "input-range", "multiple": True, "size": "lg",
            "min": "${xxx}", "max": "${xxx}", "step": "${xxx}"
        }

How can I set them dynamically from the database? Is there no way to use source or initApi?

This element is used in my filter on ModelAdmin representation (fastapi-amis-admin), and I want to set limits depending on the target data.

it`s real?

SergShulga avatar Apr 29 '24 18:04 SergShulga

it's supports variables after version 3.3.0 see https://aisuda.bce.baidu.com/amis/zh-CN/components/form/input-range#%E5%B1%9E%E6%80%A7%E8%A1%A8

allenve avatar May 14 '24 12:05 allenve