-
Notifications
You must be signed in to change notification settings - Fork 17
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
Can I Change the default label and placeholder generated in the inputs of the FilterControl class? #20
Comments
Hi! |
This following is my code: `$provider = new ArrayDataProvider($actions->toArray());
I just want to change the default label and placeholder generated by the FilterControl in the end of the code. |
$nameFilter = new FilterControl('name', FilterOperation::OPERATOR_STR_CONTAINS, $input->option('name')) You can use this expression directly when describing components array, just add See this template: https://github.com/view-components/view-components/blob/master/resources/views/input.php There is $label view variable. So, we need just set $label view variable somewhere before grid rendering. $filterControl->getView()->setDataItem('label', 'My Label'); |
Please give me know if it helps. |
I done so
|
this worked for me! |
I want to change the default labels of the inputs but when i change that the filters doesn't works well.
Any ideas to solve that?
Thanks in advance.
The text was updated successfully, but these errors were encountered: