Skip to content

[Request]: Dynamic Expressions to be consistent with defined keys #54

Description

@theweaklink

Type

Improvement

Product

OneCode Cloud

Details

Dynamic keys should match the ones defined by the dev, i-e before slugification. Therefore, the expression parser should automatically slugify the expression variables.

E.g.

onecode.dropdown(key='My Key', ...)
onecode.dropdown(..., options='$My Key$ + ["a"]')   # => doesn't work
onecode.dropdown(..., options='$my_key$ + ["a"]')   # => works

we should handle both by sluggifying the variables in the expr

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions