The update action allows us to update a property of a component.
- component property in the format
[component name].[property]
- the new value
"onClick": [ { "fn": "update", "args": ["nav.label", "Jaseci 2.0"], } ]
Runs the browser alert function.
- alert message
"onClick": [
{
"fn": "add",
"args": [1, 3],
}
]
Runs the browser alert function.
- endpoint - the api url that will be called
- HTTP Verb
- Request body
"onClick": [
{
"fn": "callEndpoint",
"endpoint": "http://localhost:3334/message",
"args": [
"POST",
{
"message": "Hello!"
}
]
}
]
Adds a component as a child of another component.
- component name
- component structure - the child component
"onClick": [
{
"fn": "append",
"args": ["msgs",
{
"component": "Text",
"props": {
"value": "Hello"
}
}
],
}
]