Skip to content

How can I call back a button‘click to a PHP function ? thanks #44

Open

Description

@cuishuamgping
No description provided.

Activity

  1. skoro commented on Jul 17, 2025

    @skoro
    Owner

    Check demos/buttons
    A button has onClick() method which accepts an arbitrary php callback like this:

    $b1= new Button($f, 'Button 1');
    $b1->onClick(function (Button $b) {
         // $b === $b1
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions