2017 © Pedro Peláez
 

yii2-extension yii2-alerts

Display simple alert message(s) on page

image

c006/yii2-alerts

Display simple alert message(s) on page

  • Tuesday, September 19, 2017
  • by c006
  • Repository
  • 1 Watchers
  • 0 Stars
  • 540 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 24 % Grown

The README.md

Yii2 Alerts

Updated: August, 2015, (*1)

  • Added scss and css files to set your own colors

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-source "c006/yii2-alerts" "dev-master", (*4)

or add, (*5)

"c006/yii2-alerts": "dev-master", (*6)

to the require section of your composer.json file., (*7)

Required

  • jQuery, (*8)

  • yii \ widgets \ Bootstrap, (*9)

Options

message => {string}
Alert message (HTML), (*10)

alert_type => {string}, (*11)

  • Alerts::ALERT_DANGER
  • Alerts::ALERT_WARNING
  • Alerts::ALERT_INFO
  • Alerts::ALERT_SUCCESS

close => {boolean}
Show close link for alert, (*12)

countdown => {int}
Automatically remove alert in X seconds, (*13)

Demo

Demo: http://demo.c006.us, (*14)

Usage

Set message, (*15)

> Alerts::setMessage('Session Timeout'); Alerts::setAlertType(Alerts::ALERT_WARNING); Alerts::setCountdown(10); /* optional */, (*16)

Display message > = Alerts::widget() ?>, (*17)

Comments / Suggestions

Please provide any helpful feedback or requests., (*18)

Thanks., (*19)

The Versions

19/09 2017

dev-master

9999999-dev

Display simple alert message(s) on page

  Sources   Download

MIT

by Jon Chambers

extension yii2 widgets alert

19/09 2017

v2.0

2.0.0.0

Display simple alert message(s) on page

  Sources   Download

MIT

by Jon Chambers

extension yii2 widgets alert

14/08 2016

dev-develop

dev-develop

Display simple alert message(s) on page

  Sources   Download

MIT

by Jon Chambers

extension yii2 widgets alert

21/08 2015

v1.0.0

1.0.0.0

Display simple alert message(s) on page

  Sources   Download

MIT

by Jon Chambers

extension yii2 widgets alert