Skip to content
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

Conversation

RafaelloLollipop
Copy link
Contributor

@RafaelloLollipop RafaelloLollipop commented Sep 3, 2019

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.

@RafaelloLollipop RafaelloLollipop changed the title Feature/allow to display search from init Feature/Allow to display search bar from init Sep 3, 2019
@coveralls
Copy link

coveralls commented Sep 3, 2019

Coverage Status

Coverage increased (+0.2%) to 76.65% when pulling 06bbea1 on Vallher:feature/allow-to-display-search-from-init into 3032a7c on gregnb:master.

@RafaelloLollipop RafaelloLollipop force-pushed the feature/allow-to-display-search-from-init branch from 3541048 to d192f4c Compare September 5, 2019 08:16
@brycewalter-univa
Copy link

Bump, I also require this for my use case

@gabrielliwerant gabrielliwerant added the needs review Useful to mark PRs for what's up next to review label Sep 11, 2019
@gabrielliwerant gabrielliwerant self-requested a review September 11, 2019 03:02
@brycewalter-univa
Copy link

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
Copy link
Collaborator

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.

Copy link
Collaborator

@gabrielliwerant gabrielliwerant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gabrielliwerant gabrielliwerant added needs work and removed needs review Useful to mark PRs for what's up next to review labels Sep 23, 2019
@alexcberk
Copy link

@VallHer I've made the above changes in a pull request to your fork.
RafaelloLollipop#2

…m-init

rename showSearch to searchOpen. add propType.
@RafaelloLollipop
Copy link
Contributor Author

Ups. I merged above changes but now I see that there was to much things renamed. I will fix it in 1-2h.

@RafaelloLollipop
Copy link
Contributor Author

Thanks @AcBerk. Now should be okay:D

Copy link
Collaborator

@gabrielliwerant gabrielliwerant left a 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.

@nikbakhtenb
Copy link

Hi. I really appreciate for this amazing table.
As it was my problem too , when it will be release?

@gabrielliwerant gabrielliwerant merged commit dcc084d into gregnb:master Oct 3, 2019
waqasajaz pushed a commit to waqasajaz/mui-datatables that referenced this pull request Oct 31, 2019
* 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
lalong13 pushed a commit to lalong13/mui-datatables that referenced this pull request Jan 15, 2020
* 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
@RafaelloLollipop RafaelloLollipop deleted the feature/allow-to-display-search-from-init branch February 21, 2024 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants