-
Notifications
You must be signed in to change notification settings - Fork 934
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
Feature/Allow to display search bar from init #893
Feature/Allow to display search bar from init #893
Conversation
Merge with source
3541048
to
d192f4c
Compare
Bump, I also require this for my use case |
Bump one more time, this feature is critical to a use case |
README.md
Outdated
@@ -165,6 +165,7 @@ The component accepts the following props: | |||
|**`sort`**|boolean|true|Enable/disable sort on all columns | |||
|**`filter`**|boolean|true|Show/hide filter icon from toolbar | |||
|**`search`**|boolean|true|Show/hide search icon from toolbar | |||
|**`showSearch`**|boolean|false|Initially displays search bar |
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.
What do you think about calling the option searchOpen
instead? My concern is that I want to distinguish it from the numerous search options that exist now, and I worry it may cause confusion with the option that shows/hides the icon form the toolbar.
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.
Lets add a line in our PropTypes definition https://github.com/gregnb/mui-datatables/blob/master/src/MUIDataTable.js#L132.
@VallHer I've made the above changes in a pull request to your fork. |
…m-init rename showSearch to searchOpen. add propType.
Ups. I merged above changes but now I see that there was to much things renamed. I will fix it in 1-2h. |
…earch-from-init Revert "rename showSearch to searchOpen. add propType."
…m-init fixed: searchOpen with propType
Thanks @AcBerk. Now should be okay:D |
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.
Looks good! Will go into the next release.
Hi. I really appreciate for this amazing table. |
* Add option to display search bar at init * rename showSearch to searchOpen. add propType. * Revert "rename showSearch to searchOpen. add propType." * fixed: searchOpen with propType
* Add option to display search bar at init * rename showSearch to searchOpen. add propType. * Revert "rename showSearch to searchOpen. add propType." * fixed: searchOpen with propType
Added option to show search from init. (in my case I want to resign from using searchIcon hide/display). In current version it is only possible when searchText is defined, but I want to have placeholder at init.