question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CSmartTable column filter can't be hidden and sort function stops working after items updated

See original GitHub issue

Hi,

I have 4 feedbacks for CSmartTable component.

1- CSmartTable is not hiding column filter inputs via props or I’m using it wrong. :column-filter="false" is simply does not working. I solved it via ugly css workaround.

2- If I give an empty array for items prop then update with a new array of objects that is coming from api, column sort is not working. As a workaround, instead of defining empty array for items prop at the start, I just put an object in this array with empty values.

// not working
const items = []

// working
const items = [
  {
    eventTime: null,
    responseCode: null,
    responseTime: null,
    status: null,
    url: null,
  },
]

3- Single arrows in the pagination below of table, normally works well but if you click page 2 then click < arrow three times, table just list all of the items. Even the arrow button seems disabled, it seems it’s clickable. (it is also not working with right arrow after user comes at last page)

4- For columns prop, _classes key seems not working. I can’t give classes for every cell in a column. If it’s not a bug, could you update the docs with an example?

Thanks

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sametsafakcommented, Feb 14, 2022
1reaction
mrholekcommented, Feb 10, 2022

@sametsafak I will check it and fix it in the next release. It should be ready next week

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't sort or filter a column in SharePoint Online
Unable to sort or filter a column in SharePoint Online because the field may not be filterable, or the number of items returned...
Read more >
Vue Smart Table Component - CoreUI
Prop name Description Type clickable‑rows Style table items as clickable. boolean columns Column | string column‑sorter boolean | Sorter
Read more >
How to show filters on certain columns for CoreUI Smart Table?
I am using CoreUI React Smart Table, I cannot seem to figure out how to put the filter on certain columns ...
Read more >
Sorting, Filtering and Hiding Data in Excel
Through the sort, filter, and hide functions you can cut out a lot of ... column and uncheck the boxes of the data...
Read more >
Pivot Table Sorting Fixes & Tips - Contextures
How to fix Excel pivot table sorting problems- new items at end, ... Sort by column or row, custom order. ... Sort Report...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found