HumHub Documentation (unofficial)

AlertTrait

Alert properties trait for [[Alert]], [[AlertBs4]] and [[AlertBs3]] widgets

Tags
author

Kartik Visweswaran kartikv2@gmail.com

since
1.0

Table of Contents

Properties

$delay  : int
$icon  : string
$iconOptions  : array<string|int, mixed>
$iconType  : string
$showSeparator  : bool
$title  : string
$titleOptions  : array<string|int, mixed>
$type  : string

Properties

$delay

public int $delay

the delay in microseconds after which the alert will be displayed. Will be useful when multiple alerts are to be shown.

$icon

public string $icon

the class name for the icon to be displayed. If set to empty or null, will not be displayed.

$iconOptions

public array<string|int, mixed> $iconOptions

the HTML attributes for the icon.

$iconType

public string $iconType

the icon type. Can be either 'class' or 'image'. Defaults to 'class'.

$showSeparator

public bool $showSeparator

show the title separator. Only applicable if [[title]] is set.

$title

public string $title

the title for the alert. If set to empty or null, will not be displayed.

$titleOptions

public array<string|int, mixed> $titleOptions

the HTML attributes for the title. The following options are additionally recognized:

  • tag: string, the HTML tag to render the title. Defaults to span.

$type

public string $type

the type of the alert to be displayed. One of the TYPE_ constants.


        
On this page

Search results