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

Smart-Table filtering and paging with CheckBoxes #822

Open
devwheel opened this issue Jan 9, 2018 · 1 comment
Open

Smart-Table filtering and paging with CheckBoxes #822

devwheel opened this issue Jan 9, 2018 · 1 comment

Comments

@devwheel
Copy link

devwheel commented Jan 9, 2018

Might be that I'm doing something wrong so would love to know how to solve this.
[http://plnkr.co/edit/SkISTVludkqhNvw9gBDN?p=preview] In this plunker, I have a checkbox that filters the data in the smart-table. I specify 10 items per page in my pagination. When de-select the comedy check box, the page filters out the 2 comedy titles on in the table but does not re-adjust the pages.
The way that I've implemented this, it simply removes the rows on each page vs recalculating the paging based on the filter.
Stuck... Any help would be appreciated.

@MrWook
Copy link
Contributor

MrWook commented Jan 10, 2018

Hello @devwheel,

i just took a quick look at you plunk.
There are a few problems.

  1. The loaded Angular librarys have all different versions and you load two different angularjs versions.
    if you load AngularJs 1.6.6 the other core angular librarys need to have the same version.
    In your plunk you include angular-animate and angular-touch. Both of them are core angular librarys that need to match the angular version
  2. You filter the displayed data directly in ng-repeat with filter:filterTypes. Therefore the pagination directive never knew that you played with the data. You need to use the stSearch directive on the checkboxes.

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

No branches or pull requests

2 participants