Class humhub\widgets\mails\MailButton

Inheritancehumhub\widgets\mails\MailButton » yii\base\Widget
Available since version1.2

MailButton renders a button for email layouts/views.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$color string Hex color, default is primary theme color humhub\widgets\mails\MailButton
$text string Button text humhub\widgets\mails\MailButton
$type string Can be used instead of $color and accepts values as primary|info|success or any other theme variable etc. humhub\widgets\mails\MailButton
$url string Target url humhub\widgets\mails\MailButton

Public Methods

Hide inherited methods

MethodDescriptionDefined By
run() humhub\widgets\mails\MailButton

Property Details

$color public property

Hex color, default is primary theme color

public string $color null
$text public property

Button text

public string $text null
$type public property

Can be used instead of $color and accepts values as primary|info|success or any other theme variable etc.

public string $type null
$url public property

Target url

public string $url null

Method Details

run() public method

public void run ( )