A communication protocol for self-contained, platform-agnostic webviews
Input on a component is given by a
It's the protocol a component must use to communicate with its container
http://path/to/my/view?protocol=guiabolso%3A%2F%2F
The protocol is going to be prepended on the component's callback URI
A lower-camel-case word starting with 'on' defined by the following RegExp:
on[A-Z][a-z]([A-Z][a-z]+)*
Example: onSubmit
Usage Example:
http://path/to/my/view?protocol=guiabolso%3A%2F%2F&onSubmit=submitHandler
Any arbitrary param a component can define as input, defined by the following RegExp:
[a-z]([A-Z][a-z]+)*
#some-state
All the Output is made via fetch
to a callback URI, wich is defined by:
<callbackURI> ::= <protocol><callback>[?{<arbitrary>=<value>}&]
guiabolso://submitHandler?username=val1&password=val2