Skip to content

onChanged method #301

Open
Open

Description

@WesJD

Originally posted by fishermedders March 30, 2023
I would like to see an onChange method, that runs whenever the input has changed.

I can't say what others' use cases would be, but mine would be to use it to create a searchable shop, with the items being in the lower inventory.

If there is anything I can do to help, please let me know :)

Activity

  1. WesJD commented on Nov 1, 2023

    @WesJD
    OwnerAuthor

    @fishermedders suggested this, didn't even see it since it was in Discussions. Marking as enhancement help wanted. Could be a neat feature.

  2. mastercake10 commented on Nov 3, 2023

    @mastercake10
    Contributor

    This has already been discussed in #231, I even created a PR for this, #232. Maybe we just need this onPrepare event without the book thingy / title change ability on type.

    Lets see if this feature is still needed.

    btw I can't access the discussions, giving a 404-error.

  3. fishermedders commented on Nov 5, 2023

    @fishermedders

    This would be my exact use case too, with the lower inventory searching things. Would love to see this feature implemented :)

  4. Repository owner deleted a comment from liuzhebaba on Feb 20, 2024
  5. OakLoaf commented on Jul 17, 2024

    @OakLoaf

    I just started using the library with the main intention of using it as a fancy text input. I'd like to be able to modify the output item to display the text input with colours formatted, as far as I am aware this isn't possible without an onChanged method of some form.

    It'd be lovely to have this implemented, it seems like mastercake was nearly there as it was :)

  6. ezariago commented on Mar 28, 2026

    @ezariago

    Hi! Is there an update for this? It seems like this feature would open up many other use cases for anvilgui to be used on other plugins!

  7. ezariago commented on Mar 28, 2026

    @ezariago

    Actually if preferable I can open a PR for the feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions