Skip to content

Enumsource with $ref #697

Open
Open
@allampalli

Description

@allampalli

Hi,
im using enumsource with $ref to load data from ajax call. but it is showing empty dropdown.
below is my code snippet.

"type": "object",
"required": ["value"],
"properties": {
"valuev": {
"type": "string",
"enumSource": [{

"source": { "$ref": "ajaxcall"},
"title": "{{item.title}}",
"value": "{{item.id}}"
}]

}
}

$ref is returning below response.

[{"id":1,"title":"value1"},{"id":2,"title":"value2"}]

but empty dropdown is rendering. could you please help me to get rid of this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions