PHP 클래스 dmstr\widgets\Alert

php \Yii::$app->getSession()->setFlash('error', 'Alert! Danger alert preview. This alert is dismissable.'); Multiple messages could be set as follows: php \Yii::$app->getSession()->setFlash('error', ['Error 1', 'Error 2']);
저자: Evgeniy Tkachenko ([email protected])
상속: extends yii\bootstrap\Widget
파일 보기 프로젝트 열기: dmstr/yii2-adminlte-asset 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$alertTypes the alert types configuration for the flash messages. This array is setup as $key => $value, where: - $key is the name of the session flash variable - $value is the array: - class of alert type (i.e. danger, success, info, warning) - icon for alert AdminLTE
$closeButton the options for rendering the close button tag.
$isAjaxRemoveFlash whether to removed flash messages during AJAX requests

공개 메소드들

메소드 설명
init ( ) Initializes the widget.

메소드 상세

init() 공개 메소드

This method will register the bootstrap asset bundle. If you override this method, make sure you call the parent implementation first.
public init ( )

프로퍼티 상세

$alertTypes 공개적으로 프로퍼티

the alert types configuration for the flash messages. This array is setup as $key => $value, where: - $key is the name of the session flash variable - $value is the array: - class of alert type (i.e. danger, success, info, warning) - icon for alert AdminLTE
public $alertTypes

$closeButton 공개적으로 프로퍼티

the options for rendering the close button tag.
public $closeButton

$isAjaxRemoveFlash 공개적으로 프로퍼티

whether to removed flash messages during AJAX requests
public $isAjaxRemoveFlash