Commits

Joachim Werner committed 5af4942

Added to text README

Comments (0)

Files changed (4)

DDAutoFilterDataColumn.php

 <?php
+/**
+ * DDAutoFilterDataColumn class file
+ *
+ * @author Joachim Werner <joachim.werner@diggin-data.de> 
+ */
+
+/**
+ * DDAutoFilterDataColumn renders the autofilter filter cell in the gridview
+ *
+ * @author Joachim Werner <joachim.werner@diggin-data.de> 
+ * @version 0.1
+ */
 class DDAutoFilterDataColumn extends TbDataColumn
 {
     public $columnType='text';

DDAutoFilterSearchBehavior.php

  * This model behavior builds search conditions for the DDAutoFilter widget
  *
  * @author Joachim Werner <joachim.werner@diggin-data.de> 
+ * @version 0.1
  */
 class DDAutoFilterSearchBehavior extends CActiveRecordBehavior
 {
 DDAutoFilter
 ============
 
+DDAutoFilter is a [Yii][yii] extension to display auto-filters in a CGridView 
+similar to MS Excel auto-filters.
+
+It is currently working with [Yii-bootstrap][yii-bootstrap] based Yii applications.
+
+
 Installation
 ------------
 
 $criteria->mergeWith($this->textSearchCriteria('title', $this->title));
 ~~~
 
+For _date_ columns, use:
+
+~~~
+$criteria->mergeWith($this->dateSearchCriteria('title', $this->title));
+~~~
+
+For _timestamp_ columns, use:
+
+~~~
+$criteria->mergeWith($this->dateSearchCriteria('title', $this->title, 'U'));
+~~~
+
 #### Grid View
 
 ##### Grid View Properties
 
 
 [paypal]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DDZUYNDEJ6XDY
+[yii]: http://yiiframework.com/extensions/
+[yii-bootstrap]: http://www.yiiframework.com/extension/bootstrap

resources/ddautofilter.js

+/**
+ * DDAUtofilter JavaScript
+ *
+ * @author Joachim Werner <joachim.werner@diggin-data.de> 
+ */
 var grid;
 var columnType;
 var modelName;
 var moreFiltersShown=false;
 var filterCellName;
 var sorting = false;
-
 function showAutofilterDialog() // {{{ 
 {
     var valueObj={};