All Projects → lichunqiang → yii2-sweet-submit

lichunqiang / yii2-sweet-submit

Licence: MIT license
sweet sumit using sweetalert

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to yii2-sweet-submit

yii2-lock-form
disable the button when form submit
Stars: ✭ 37 (+42.31%)
Mutual labels:  yii2, yii2-extension, yii2-widgets
yii2-fileapi-widget
Yii2 FileAPI widget.
Stars: ✭ 51 (+96.15%)
Mutual labels:  yii2, yii2-extension, yii2-widgets
yii2-vote
Provides voting for any model 👍 👎
Stars: ✭ 70 (+169.23%)
Mutual labels:  yii2, yii2-extension
yii2-newsletter
Module for saving user contacts from newsletter form to database
Stars: ✭ 17 (-34.62%)
Mutual labels:  yii2, yii2-extension
yii2-rollbar
Rollbar for Yii2
Stars: ✭ 36 (+38.46%)
Mutual labels:  yii2, yii2-extension
yii2-cropper
Yii2 Image Cropper InputWidget
Stars: ✭ 22 (-15.38%)
Mutual labels:  yii2-extension, yii2-widgets
yii2-translatable
Translatable behavior aggregates logic of linking translations to the primary model
Stars: ✭ 15 (-42.31%)
Mutual labels:  yii2, yii2-extension
yii2-cashier
Yii2 Cashier provides an interface to Stripe's subscription billing services.
Stars: ✭ 43 (+65.38%)
Mutual labels:  yii2, yii2-extension
install
basic script for project installation
Stars: ✭ 17 (-34.62%)
Mutual labels:  yii2, yii2-extension
yii2-array-query
Yii2 component that allows for searching/filtering the elements of an array.
Stars: ✭ 34 (+30.77%)
Mutual labels:  yii2, yii2-extension
yii2-pgsql
Improved PostgreSQL schemas for Yii2
Stars: ✭ 34 (+30.77%)
Mutual labels:  yii2, yii2-extension
yii2-linkable-behavior
Yii2 behavior to help creating urls easier
Stars: ✭ 12 (-53.85%)
Mutual labels:  yii2, yii2-extension
yii2-mailqueue
Yii2 mail queue component for yii2-swiftmailer.
Stars: ✭ 15 (-42.31%)
Mutual labels:  yii2, yii2-extension
content
Content management system for Yii2
Stars: ✭ 54 (+107.69%)
Mutual labels:  yii2, yii2-extension
yii2-stat
Yii2 Multi Web Statistic Module (yametrika, google-analytic, own db-counter)
Stars: ✭ 18 (-30.77%)
Mutual labels:  yii2, yii2-extension
yii2-lets-talk
With this extension you can open chat with someone in popular messengers using the link on your website.
Stars: ✭ 15 (-42.31%)
Mutual labels:  yii2, yii2-extension
ar-search
Provides unified search model for Yii ActiveRecord
Stars: ✭ 31 (+19.23%)
Mutual labels:  yii2, yii2-extension
yii2-bankcard-info
银行卡卡号分析(Yii2扩展)
Stars: ✭ 15 (-42.31%)
Mutual labels:  yii2, yii2-extension
Ar Softdelete
Soft delete behavior for ActiveRecord
Stars: ✭ 188 (+623.08%)
Mutual labels:  yii2, yii2-extension
Yii2 Translate Manager
Translation Manager
Stars: ✭ 221 (+750%)
Mutual labels:  yii2, yii2-extension

Yii2 Sweeet Submit


version Download Issues

By default yii.js using browser's confirm function to show confirm message.This library used sweet-alert to instead it:

before

after

Install

$ composer require light\yii2-sweet-submit=*

Usage

you can depends this in your assets:

class AppAsset extends AssetBundle
{
    //..

    public $depends = [
        //your other depends
        'light\widgets\SweetSubmitAsset'
    ];
}

Or directly inject in the view:

use light\widgets\SweetSubmitAsset;

SweetSubmitAsset::register($this);

Once you had depends it in your project, yii.swal is available. What's this? It's just the sweet-alert, now you can use it:

//your some.js
yii.swal('Opps. this is shown by sweet-alert');

There is more usage you can find from document

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].