5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-17 17:39:29 +08:00
wails/v3/examples/binding
Fabio Massaioli 2b9891da2c
[v3] Update and fix runtime JS API (#3295)
* Cleanup bundled runtime entry point

* Fix JS representation of Screen struct

* Expose IsFocused method in Window interface

* Update JS window API

* Fix cleanup of WML listeners

* Bundle runtime as ES module

* Update runtime dependencies

* Update runtime types and events

* Update bundled runtime

* Update changelog

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2024-03-20 20:30:14 +11:00
..
assets [v3] Update and fix runtime JS API (#3295) 2024-03-20 20:30:14 +11:00
GreetService.go Update bindings example 2023-09-04 21:01:00 +10:00
main.go Add BundledAssetFileServer for bundled /wails/runtime.js. Update examples. 2024-03-17 15:08:30 +11:00
models.ts [v3] Move to integer call ids for bound methods. 2023-08-19 14:25:36 +10:00
README.md [v3 examples/bindings] correct binding output + example 2023-10-31 17:24:00 -05:00

Bindings Example

This example demonstrates how to generate bindings for your application.

To generate bindings, run wails3 generate bindings -d assets in this directory.

See more options by running wails3 generate bindings --help.

Notes

  • The bindings generator is still a work in progress and is subject to change.
  • The generated code uses wails.CallByID by default. This is the most secure and quickest way to call a function. In a future release, we will look at generating wails.CallByName too.