Makes a Button displayable in all email clients
CloneableInstantiable
- Extends
- Implements
Countable PHPFUI \Interfaces \Walkable Stringable - Traits
Constants |
Methods |
public __construct(string $text, string $link = '') Construct an EMailButton
|
public setBackgroundColor(string $backgroundColor) : static Set the background color |
public setBackgroundImage(string $backgroundImage) : static Set a background image
|
public setBorderColor(string $borderColor) : static Set the border color |
public setColor(string $color) : static Set the main button color |
public setFont(string $font) : static Set the font name |
public setFontSize(int $fontSize) : static Set the font size in pixels |
public setHeight(int $height) : static Set the button height in pixels |
public setRadius(int $radius) : static Set the button radius in pixels |
public setWidth(int $width) : static Set the button width in pixels |
Properties |
protected string $backgroundColor = '008cba' |
protected string $backgroundImage = '' |
protected string $borderColor = '008cba' |
protected string $color = 'ffffff' |
protected string $font = 'sans-serif' |
protected int $fontSize = 13 |
protected int $height = 40 |
protected string $link |
protected int $radius = 3 |
protected string $text |
protected int $width = 150 |
Methods |
protected getBody() : string |
protected getEnd() : string |
protected getStart() : string |
Methods |