Version 0.20
Generate Js with B4X code.
GitHub: https://github.com/pyhoon/MiniJs-B4X
Example:
Output:
Generate Js with B4X code.
GitHub: https://github.com/pyhoon/MiniJs-B4X
Example:
B4X:
Dim details As Map
details.Initialize
details.Put("entity", entity)
details.Put("action", action)
details.Put("message", message)
details.Put("status", status)
Dim script1 As MiniJs
script1.Initialize
script1.AddCustomEventDispatch("entity:changed", details)
Response.Write(script1.Generate)
JavaScript:
document.dispatchEvent(new CustomEvent('entity:changed', {
detail: {
entity: 'Product',
action: 'updated',
message: 'Product updated successfully!',
status: 'info'
}
}));
Attachments
Last edited: