Skip to Content
ドキュメントOxOx LibModulesDuiJavaScriptクライアント

クライアント

シンプルで一元化されたduiの作成、メッセージの送信、URLの変更、削除をサポート

Dui(data)
  • のデータがある:object
    • url:string
    • 幅がある:number
    • の高さだ:number
    • デバッグ?boolean

リターンズ

  • 酒気帯び運転だ:Dui
    • url:string
    • duiObject:number
    • duiHandle:string
    • runtimeTxd:number
    • txdObject:number
    • dictName:string
    • txtName:string
    • setUrl:function(url:string)
    • を送信する:function(データobject)
    • を取り除く:function

使用例

import { Dui, cache } from '@communityox/ox_lib/client' const dui = new Dui({ url: `nui://${cache.resource}/web/index.html`, width: 1920, height: 1080, debug: true }) // Change url dui.setUrl("https://google.com") // Send a message dui.sendMessage({ action: "display", value: true }) // Destroy dui.remove()
Last updated on