public function displayDatasourceFilterPanel(XMLElement &$wrapper, $data = null, $errors = null, $fieldnamePrefix = null, $fieldnamePostfix = null)
    {
        $wrapper->appendChild(new XMLElement('header', '<h4>' . $this->get('label') . '</h4> <span>' . $this->name() . '</span>', array(
            'data-name' => $this->get('label') . ' (' . $this->name() . ')'
        )));

        $label = Widget::Label(__('Value'));
        $input = Widget::Input('fields[filter]'.($fieldnamePrefix ? '['.$fieldnamePrefix.']' : '').'['.$this->get('id').']'.($fieldnamePostfix ? '['.$fieldnamePostfix.']' : ''), ($data ? General::sanitize($data) : null));
        $input->setAttribute('autocomplete', 'off');
        $input->setAttribute('data-search-types', 'parameters');
        $input->setAttribute('data-trigger', '{$');
        $label->appendChild($input);
        $wrapper->appendChild($label);

        $this->displayFilteringOptions($wrapper);
    }
public function displayDatasourceFilterPanel(XMLElement &$wrapper, $data = null, $errors = null, $fieldnamePrefix = null, $fieldnamePostfix = null)
    {
        $wrapper->appendChild(new XMLElement('header', '<h4>' . $this->get('label') . '</h4> <span>' . $this->name() . '</span>', array(
            'data-name' => $this->get('label') . ' (' . $this->name() . ')'
        )));

        $label = Widget::Label(__('Value'));
        $input = Widget::Input('fields[filter]'.($fieldnamePrefix ? '['.$fieldnamePrefix.']' : '').'['.$this->get('id').']'.($fieldnamePostfix ? '['.$fieldnamePostfix.']' : ''), ($data ? General::sanitize($data) : null));
        $input->setAttribute('autocomplete', 'off');
        $input->setAttribute('data-search-types', 'parameters');
        $input->setAttribute('data-trigger', '{$');
        $label->appendChild($input);
        $wrapper->appendChild($label);

        $this->displayFilteringOptions($wrapper);
    }
public function displayDatasourceFilterPanel ( XMLElement & $ wrapper , $ data = null , $ errors = null , $ fieldnamePrefix = null , $ fieldnamePostfix = null ) { $ wrapper -> appendChild ( new XMLElement ( 'header' , '<h4>' . $ this -> get ( 'label' ) . '</h4> <span>' . $ this -> name ( ) . '</span>' , array ( 'data-name' => $ this -> get ( 'label' ) . ' (' . $ this -> name ( ) . ')' ) ) ) ; $ label = Widget :: Label ( __ ( 'Value' ) ) ; $ input = Widget :: Input ( 'fields[filter]' . ( $ fieldnamePrefix ? '[' . $ fieldnamePrefix . ']' : '' ) . '[' . $ this -> get ( 'id' ) . ']' . ( $ fieldnamePostfix ? '[' . $ fieldnamePostfix . ']' : '' ) , ( $ data ? General :: sanitize ( $ data ) : null ) ) ; $ input -> setAttribute ( 'autocomplete' , 'off' ) ; $ input -> setAttribute ( 'data-search-types' , 'parameters' ) ; $ input -> setAttribute ( 'data-trigger' , '{$' ) ; $ label -> appendChild ( $ input ) ; $ wrapper -> appendChild ( $ label ) ; $ this -> displayFilteringOptions ( $ wrapper ) ; }
Display the default data source filter panel.

@param XMLElement $wrapper
the input XMLElement to which the display of this will be appended.
@param mixed $data (optional)
the input data. this defaults to null.
@param null $errors
the input error collection. this defaults to null.
@param string $fieldnamePrefix
the prefix to apply to the display of this.
@param string $fieldnamePostfix
the suffix to apply to the display of this.
@throws InvalidArgumentException
Display the default data source filter panel .