rage-fw-cef
parent
59efd542a2
commit
6d81a414cd
@ -231,9 +231,27 @@ Further documentation will describe the functions included in ``fw``
|
||||
### Cef
|
||||
|
||||
#### register
|
||||
Registers CEF event
|
||||
```ts
|
||||
fw.event.register('cefEventName', ([arg1, arg2]) => {
|
||||
// your logic here
|
||||
})
|
||||
```
|
||||
|
||||
#### trigger
|
||||
Triggers registered CEF event with passed arguments. Formerly known as ``call`` or ``emit``
|
||||
```ts
|
||||
fw.event.trigger('clientEventName', ['arg1', 2])
|
||||
```
|
||||
|
||||
#### triggerServer
|
||||
Triggers registered client event with passed arguments. Formerly known as ``callServer`` or ``emitServer``
|
||||
```ts
|
||||
fw.event.triggerServer('serverEventName', ['arg1', 2])
|
||||
```
|
||||
|
||||
#### triggerClient
|
||||
Triggers registered CEF event with passed arguments. Formerly known as ``callBrowser`` or ``emitBrowser``
|
||||
```ts
|
||||
fw.event.triggerBrowser('clientEventName', ['arg1', 2])
|
||||
```
|
Loading…
Reference in New Issue
Block a user