Answers for "html button with php code"

1

print button code in php

<button onClick="window.print()">Print</button>
Posted by: Guest on July-06-2020
2

buttons in php

class StargazerButton extends \atk4\ui\Button {

  public $model;
  public $label;

  function init() {
    parent::init();

    $this->add(new Button(['Stars', 'basic blue', 'icon'=>'star']));
    $this->label = $this->add(new Label($model['stars'], ['basic blue left pointing']));

    $this->on('click', function() {
      $this->model['stars']++;
      $this->model->save();
      return $this->reload();
    });
  }
}
Posted by: Guest on August-12-2020

Browse Popular Code Answers by Language