We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
This is an <input type=button/>.
Extends: Input » Control » Renderable
Creates javascript code to redirect elsewhere on button click.
Definition: public function LinkTo($controller, $method, $data)
public function LinkTo($controller, $method, $data)
Returns: static
static
Parameters:
mixed $controller The controller to be loaded (can be Renderable or string)
mixed $controller
string $method The method to be executed
string $method
array|string $data Optional data to be passed
array|string $data
DEPRECATED (2021/05) This hides the parent Make method and should not be used anymore Overrides Control::Make with own logic.
Button creation shortcut
Definition: public static function Textual($label, $onclick=false)
public static function Textual($label, $onclick=false)
Returns: Button The new button
string $label Label
string $label
string $onclick OnClick JS code
string $onclick
Creates a Button. Note that you can safely ignore all but the $label argument if your new button shall not redirect elsewhere on click.
Definition: public function __construct($label, $controller, $event, $data)
public function __construct($label, $controller, $event, $data)
Returns: NOT DOCUMENTED
string $label Label text
string $controller Controller for click redirect
string $controller
string $event Event for click redirect
string $event
mixed $data Data for click redirect
mixed $data