Skip to content

Is it possible to use a callback in a JSON type? #182

Open
@irakliasatiani

Description

@irakliasatiani

There are many components in react that are using callback functions inside objects, it seems it's not working with web component JSON format, which is in fact expectable since it's just text, and it can't understand what is the function in the JSON. but would be really nice if we could use function as a object param like this.

    <web-app
      obj-prop='{ "very": "object", "such": "wow!", "callback": "myFunction:function"}'
    >
    </web-app>

is there any other way other than using the function param only as top level param?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions