public function renderQuickSearch()
    {
        if (!$this->dataProvider instanceof ActiveDataProvider || !$this->dataProvider->query instanceof ActiveQuery) {
            return '';
        }
        $id = $this->getId();
        $value = Html::encode($this->dataProvider->query->quickSearchPhrase);
        $placeholder = Yii::t('app', 'Search');
        $result = <<<HTML
        <div class="form-group">
            <div class="input-group grid-quick-search">
                <div class="input-group-btn">
                    <button class="btn btn-default" type="submit"><i class="mdi mdi-magnify"></i></button>
                </div>
                <input class="form-control"
                        id="{$id}-quickSearch" name="search" placeholder="$placeholder" value="$value" type="text"/>
                         <!--onkeyup="jQuery('#{$id}').yiiGridView('applyFilter')"-->
                <div class="input-group-btn">
                    <button class="btn btn-default" onclick="$('#{$id}-quickSearch').val('').change();return false;">
                        <i class="mdi mdi-close"></i>
                    </button>
                </div>
            </div>
        </div>
HTML;
        return $result;
    }
public function renderQuickSearch()
    {
        if (!$this->dataProvider instanceof ActiveDataProvider || !$this->dataProvider->query instanceof ActiveQuery) {
            return '';
        }
        $id = $this->getId();
        $value = Html::encode($this->dataProvider->query->quickSearchPhrase);
        $placeholder = Yii::t('app', 'Search');
        $result = <<<HTML
        <div class="form-group">
            <div class="input-group grid-quick-search">
                <div class="input-group-btn">
                    <button class="btn btn-default" type="submit"><i class="mdi mdi-magnify"></i></button>
                </div>
                <input class="form-control"
                        id="{$id}-quickSearch" name="search" placeholder="$placeholder" value="$value" type="text"/>
                         <!--onkeyup="jQuery('#{$id}').yiiGridView('applyFilter')"-->
                <div class="input-group-btn">
                    <button class="btn btn-default" onclick="$('#{$id}-quickSearch').val('').change();return false;">
                        <i class="mdi mdi-close"></i>
                    </button>
                </div>
            </div>
        </div>
HTML;
        return $result;
    }
public function renderQuickSearch ( ) { if ( ! $ this -> dataProvider instanceof ActiveDataProvider || ! $ this -> dataProvider -> query instanceof ActiveQuery ) { return '' ; } $ id = $ this -> getId ( ) ; $ value = Html :: encode ( $ this -> dataProvider -> query -> quickSearchPhrase ) ; $ placeholder = Yii :: t ( 'app' , 'Search' ) ; $ result =  <<<HTML
        <div class="form-group">
            <div class="input-group grid-quick-search">
                <div class="input-group-btn">
                    <button class="btn btn-default" type="submit"><i class="mdi mdi-magnify"></i></button>
                </div>
                <input class="form-control"
                        id="{$id}-quickSearch" name="search" placeholder="$placeholder" value="$value" type="text"/>
                         <!--onkeyup="jQuery('#{$id}').yiiGridView('applyFilter')"-->
                <div class="input-group-btn">
                    <button class="btn btn-default" onclick="$('#{$id}-quickSearch').val('').change();return false;">
                        <i class="mdi mdi-close"></i>
                    </button>
                </div>
            </div>
        </div>
HTML ; return $ result ; }
Renders the quick search input field.
@return string the rendering result
Renders the quick search input field .