Download the PHP package pentium10/yii-clear-filters-gridview without Composer

On this page you can find all versions of the php package pentium10/yii-clear-filters-gridview. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii-clear-filters-gridview

yii-clear-filters-gridview

The EButtonColumnWithClearFilters Yii extension adds up some functionality to the default possibilites of CButtonColumn implementation when you use extensions to remember filter values. This extension helps you to clear the remembered filter values.

Check out Remember Filters Gridview extension also.

An image will be placed in the top column(on same line of AJAX filters). When clicked the filters will be cleared, the content will be refreshed with all items available.

Please login to see the Demo image!

Requirements

Donate

Click here to donate

Resources

Install

We recommend installing the extension with Composer. Add this to the require section of your composer.json:

"pentium10/yii-clear-filters-gridview" : "dev-master"

You also need to include composer's autoloader:

Usage

Step 1

To use this extension, copy this file to your components/ directory, add 'import' => 'application.components.EButtonColumnWithClearFilters', [...] to your config/main.php and use this column on each widget's Column array you would like to inherit the new possibilities:

All posible customizations have been enumerated above, you shall comment out those that you won't override. The minial setup is just the class type for the Columns. In addition to this you can still use/override the CButtonColumn to suit your needs.

Step 2

If you are using the Remember Filters Gridview extension, you need to add to your controller the following code. This is placed in the action method that handles the gridview display, after you have initialized your model.

Sample actionAdmin()

If you don't need the clear filters button capabilities you can also pass a clearFilters parameter with a 1(one) value to the controller, for this you can use a link or a button.

This extension has also a pair Remember Filters Gridview

yii, clear, filters, cgridview, gridview, store, reload, controller, model, behavior, interface, widget, stick, scenario

Change Log

CHANGELOG.md

Contributing

  1. Fork it.
  2. Create a branch (git checkout -b my_enhancement_name)
  3. Commit your changes (git commit -am "Enhanced Javascript")
  4. Push to the branch (git push origin my_enhancement_name)
  5. Open a Pull Request
  6. Enjoy a refreshing Diet Coke and wait

All versions of yii-clear-filters-gridview with dependencies

PHP Build Version
Package Version
Requires php Version >=5.1.0
yiisoft/yii Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pentium10/yii-clear-filters-gridview contains the following files

Loading the files please wait ....