New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GridView filter error indication added (#3154) #3164
GridView filter error indication added (#3154) #3164
Conversation
{ | ||
$filterClass .= ' '; | ||
} | ||
$this->filterOptions['class'] = $filterClass . 'has-error'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better to use Html::addCssClass
instead
Updated the code, still interested in suggestions and comments. Thank you for your time. |
are you sure that |
Agree, this functionality is GridView specific so we do not need any code for it in BaseListView. |
you should overwrite |
* - `{sorter}`: the sorter. See [[renderSorter()]]. | ||
* - `{pager}`: the pager. See [[renderPager()]]. | ||
*/ | ||
public $layout = "{summary}\n{errors}\n{items}\n{pager}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not certain about that - should I place it here? It makes hard to overwrite the default by simply changing the BaseListView::$layout then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is okay if gridview has its own layout as its appearance is different anyway.
…or-indication GridView filter error indication added (#3154)
Thanks! |
According to #3154.