LinkButton
in package
implements
CardElement
Table of Contents
Interfaces
Properties
- $label : string
- $style : ButtonStyle
- $url : string
Methods
- __construct() : mixed
- danger() : self
- primary() : self
Properties
$label read-only
public
string
$label
$style read-only
public
ButtonStyle
$style
= ButtonStyle::Secondary
$url read-only
public
string
$url
Methods
__construct()
public
__construct(string $label, string $url[, ButtonStyle $style = ButtonStyle::Secondary ]) : mixed
Parameters
- $label : string
- $url : string
- $style : ButtonStyle = ButtonStyle::Secondary
danger()
public
static danger(string $label, string $url) : self
Parameters
- $label : string
- $url : string
Return values
selfprimary()
public
static primary(string $label, string $url) : self
Parameters
- $label : string
- $url : string