How do slots work on CSmartTable? #318
Unanswered
Gavin-PunchCard
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
We're running Coreui-react pro on a project and making use of the CSmartTable. The cleaner button really doesn't fit the project style, and I'm looking to adjust it. The document says that it can be customized through the cleaner slot, but I'm unable to figure out how that works.
I've attempted slot / scopedSlots = {{cleaner: () => JSX.Element;}} with/without quotes around cleaner (v3 pattern), using a child component in the table with a slot prop, adding it into scopedColumns (didn't expect it to work but thought I would try), and a number of other things. I cant seem to find any similar topics, but would appreciate being pointed in that direction too.
Is anyone able to advise how to replace the style of the cleaner button?
Beta Was this translation helpful? Give feedback.
All reactions