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/cms 1221 add a search input to the fields and entry types pages #14126

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Jan 11, 2024

Description

Adds searching capability to the vue AdminTable for both Data and API modes.

  • the search bar will now show if the search property is set to true (regardless of whether we’re in Data or API mode)
  • if in Data mode, rows will be shown/hidden via adding/removing a hidden class depending on whether a match was found in that row
  • if in the API mode, search is handled server-side and results are provided back via the tableDataEndpoint
  • adds the searchClear string property that defines the copy for the clear button (defaults to “Clear”)
  • adds the noSearchResults sting property that defines the copy to show when no results are found when searching (defaults to “No results.”)
  • adds the searchParams array property, which is only used in the Data mode; in it, you can define which row attributes are to be searched through (defaults to an empty array)
  • switches Settings > Fields and Settings > Entry Types pages from using Data mode to API mode.

Used in the Control Panel on the Settings > Fields and Settings > Entry Types pages.

Related issues

cms-1221

Copy link

linear bot commented Jan 11, 2024

…ntry-types-pages-api-mode' into feature/cms-1221-add-a-search-input-to-the-fields-and-entry-types-pages
@i-just i-just marked this pull request as ready for review January 16, 2024 08:57
i-just and others added 7 commits January 17, 2024 14:57
@brandonkelly brandonkelly merged commit feac9ac into 5.0 Jan 25, 2024
@brandonkelly brandonkelly deleted the feature/cms-1221-add-a-search-input-to-the-fields-and-entry-types-pages branch January 25, 2024 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants