Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for actions and input fields #19

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Akida31
Copy link

@Akida31 Akida31 commented Apr 22, 2022

This adds some support and examples for the following actions:

  • Selection
  • Text
  • Button/ Action

To get the values from the actions and input fields some handlers were added.
These will be called by windows and execute user supplied closures.

To avoid breaking changes ToastWithHandlers won't be integrated in Toast. ToastWithHandlers requires an owned self because the handler closure will be moved. Technically it may be possible to work around this with some shared ownership of the handler closures but this could be difficult.

Should the crate get a new release so that users and other crates could use this soon?

This adds some support for the following actions:
* Selection
* Text
* Button/ Action
To get the values from the actions and input fields some handlers were added.
These will be called by windows and execute user supplied closures.
Note that the closures are `Send` to avoid a future breaking change
because of an update of the `windows`-crate.
@Abdo-reda Abdo-reda mentioned this pull request Jul 22, 2023
@elibroftw
Copy link

@allenbenz hey would really appreciate if you could give the reigns for the repo to another person. It could really speed up development, developer experience, and improve the overall ecosystem. Especially for Tauri developers since this is used by Tauri indirectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants