1.0.8 • Published 4 years ago

bootstrap-msg v1.0.8

Weekly downloads
36
License
MIT
Repository
github
Last release
4 years ago

BootstrapMsg

The jQuery plugin for showing message with Bootstrap alert classes (http://ducdhm.github.io/bootstrap-msg/)

Shortcuts

Dependencies

Methods

NameParams (ParamType: ParamName)Description
Msg.showString: typeString: messageNumber: timeoutShow message. type can be info, success, warning or danger. If timeout is not set, will use default timeout
Msg.infoString: messageNumber: timeoutShortcut of showMessage with type is info
Msg.successString: messageNumber: timeoutShortcut of showMessage with type is success
Msg.warningString: messageNumber: timeoutShortcut of showMessage with type is warning
Msg.errorString: messageNumber: timeoutAlias of Msg.danger
Msg.dangerString: messageNumber: timeoutShortcut of showMessage with type is danger

Default

Timeout

Timeout for BootstrapMsg is available at Msg.timeout

TypeTimeout (in ms)
info5 * 1000
success5 * 1000
warning5 * 1000
danger5 * 1000

Icon

Icon for BootstrapMsg is available at Msg.icon

TypeClass
infofa fa-info-circle
successfa fa-check-circle
warningfa fa-exclamation-circle
dangerfa fa-times-circle

Custom Icon

If you want to custom icon for BootstrapMsg, you just need to specify icon class for each message type. Example:

Msg.icon = {    
    info: 'fa fa-bath',
    success: 'fa fa-anchor',
    warning: 'fa fa-bell-o',
    danger: 'fa fa-bolt'  
};

Using Bootstrap Icon

We already define a Bootstrap icon set for BootstrapMsg at Msg.ICON.BOOTSTRAP. For using this icon set, just need Msg.icon = Msg.ICONS.BOOTSTRAP;

Hide icon

If you do not want to show icon in BootstrapMsg, you can set Msg.iconEnabled = false;

Extra class

If you want to add extra class to BootstrapMsg element, just change Msg.extraClass for default extra class

License

Please read at here

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago