Trait kartik\alert\AlertMethodsTrait
Uses Traits | kartik\alert\AlertTrait |
---|---|
Implemented by | kartik\alert\Bs3Alert, kartik\alert\Bs4Alert, kartik\alert\Bs5Alert |
Available since version | 1.0 |
AlertMethodsTrait provides common methods for usage by kartik\alert\Bs5Alert, kartik\alert\Bs4Alert and kartik\alert\Bs3Alert widgets.
Public Methods
Method | Description | Defined By |
---|---|---|
run() | Renders the widget. | kartik\alert\AlertMethodsTrait |
Protected Methods
Method | Description | Defined 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
Gets the title section
protected string getTitle ( ) |
Initializes the widget options.
This method sets the default values for various options.
protected void initOptions ( ) |
Registers the client assets (JS & CSS) for the kartik\alert\Alert widget.
protected void registerAssets ( ) |
Renders the widget.
public void run ( ) |