Skip to content

stellvick/react-advpl-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twebchannel-js

Implementação simples de comunicação com o componente AdvPL TWebChannel.

Instalação:

npm install @totvs/twebchannel-js --save

Uso:

connect

Inicia a conexão com o TWebChannel AdvPL

Parametros:

  • callback: Function
    twebchannel.connect(callback);

jsToAdvpl

Executa uma chamada para a execução do bloco de código bJsToAdvpl do TWebChannel AdvPL.

Parametros:

  • key: string
  • value: string
    twebchannel.jsToAdvpl("key", "value");

advplToJs

Função que é executada ao receber uma chamada do metodo advplToJs do TWebChannel AdvPL.

Tipo: Function

Parâmetros:

  • key: string
  • value: string
    twebchannel.advplToJs = function(key, value) {
        console.log(key, value);
    }

About

Using React + ADVPL with TWebEngine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • xBase 47.1%
  • JavaScript 45.3%
  • CSS 4.3%
  • HTML 3.3%