Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

lichunqiang/yii2-lock-form

Open more actions menu

Repository files navigation

Yii2 Lock Form Extension


version Download Issues

Make form submit button disabled when the form submit.

Install

$ composer require light/yii2-lock-form=~1.0.2

Usage

Can can depends this in your assets:

if you depends on yii2-bootstrap, you can use light\widgets\LockBsFormAsset instead. So can decrease the asset size.

class YourAsset extends AssetBundle
{
    //..

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

Or directly inject in the view:

use light\widgets\LockFormAsset;

LockFormAsset::register($this);

License

MIT

About

disable the button when form submit

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.