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

fix(pfFilter): fix plugin filters do not work if tables are set up serverSide #1095

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

pebri86
Copy link

@pebri86 pebri86 commented Jul 18, 2018

fix(pfFilter): fix plugin filters do not work if tables are set up serverSide

fix #1092

Description

fix pfFilter to use filtering on server side when datatable are set up using serverSide options.

Changes

Write a list of changes the PR introduces

  • Add function updateRemoteFilter and do update on remote side when user set serverSide options to true

package.json Outdated
@@ -5,6 +5,7 @@
"license": "Apache-2.0",
"dependencies": {
"bootstrap": "~3.3.7",
"datatables": "^1.10.18",
Copy link
Member

Choose a reason for hiding this comment

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

adding datatables as a required dependency is probably going to be a challenge for users, these should be absolute must-haves for users of PatternFly - can this be added as an optional dependency instead?

Copy link
Author

Choose a reason for hiding this comment

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

Ah thanks for your response, sure i'll move it to optional dependency

Move datatables as optional dependencies
Copy link
Author

@pebri86 pebri86 left a comment

Choose a reason for hiding this comment

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

I have moved datatables as optional dependency. thank you

@dgutride dgutride requested a review from mcoker August 21, 2018 14:19
@dgutride
Copy link
Member

The JS looks good - added @michael-coker to take a glance at the css if possible.

@mcoker
Copy link
Contributor

mcoker commented Aug 21, 2018

I can't find the elements that the CSS modifications apply to in any of the table view test pages. What do I need to do to see the changes in .table-view-pf-save, .table-view-pf-cancel, and .table-view-pf-editable > .table-view-pf-editor?

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.

Datatables: Filter plugin won't work if table was set to 'serverSide'
4 participants