baidu/amis

dynamic input-range

Closed this issue · 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?