Trait kartik\alert\AlertMethodsTrait

Uses Traitskartik\alert\AlertTrait
Implemented bykartik\alert\Bs3Alert, kartik\alert\Bs4Alert, kartik\alert\Bs5Alert
Available since version1.0

AlertMethodsTrait provides common methods for usage by kartik\alert\Bs5Alert, kartik\alert\Bs4Alert and kartik\alert\Bs3Alert widgets.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
run() Renders the widget. kartik\alert\AlertMethodsTrait

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
getTitle() Gets the title section kartik\alert\AlertMethodsTrait
initOptions() Initializes the widget options. kartik\alert\AlertMethodsTrait
registerAssets() Registers the client assets (JS & CSS) for the kartik\alert\Alert widget. kartik\alert\AlertMethodsTrait

Method Details

getTitle() protected method

Gets the title section

protected string getTitle ( )
initOptions() protected method

Initializes the widget options.

This method sets the default values for various options.

protected void initOptions ( )
registerAssets() protected method

Registers the client assets (JS & CSS) for the kartik\alert\Alert widget.

protected void registerAssets ( )
run() public method

Renders the widget.

public void run ( )