Slick grid collapse and expand icons #1013
-
I know I am being dense, but I cannot figure out how to move to the SVG images. I do not see expanded or collapsed icons in my grid; however, the functionality works. I am using the following version of SlickGrid - https://cdn.jsdelivr.net/npm/[email protected]/dist/ I had this code
and changed it to this based on drilling into examples -
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
it's not exactly clear what you're trying to do, what do you mean by move? If you just want to change the SVG to something else, I think it will only work via SASS because it uses a SASS mixin which cannot be used by CSS variables. Also if I remember correctly, there a couple of icons that are embedded within the Alpine Theme and only the Alpine Theme has SASS variables that can be customized. SlickGrid/src/styles/_variables.scss Lines 97 to 98 in d1132c9 the mixin for the Alpine Theme that is being used is here SlickGrid/src/styles/_mixins.scss Lines 1 to 17 in d1132c9 For the Classic Theme to work, I had to remove the references to the images and replaced them with SVG, so as per your code, it looks like you want to use the Classic Theme and if that is the case then you'll have to change it from here SlickGrid/src/styles/slick-default-theme.scss Lines 76 to 90 in d1132c9 you can see a live demo of the grouping with both themes and default icons |
Beta Was this translation helpful? Give feedback.
We removed all the icons in v5 because SVGs take a lot less space and we can control their size and color, we don't have that flexibility with images. All images are gone, so stop referencing them (your website is referencing an image that doesn't exist), use the new SVG provided or use custom SVG, I mentioned that in the Migration to v5 which you might have missed reading.
when you hover the url, it should show the SVG icon and the name must be unique I think
Also as mentioned in the migration, all the code I got to replace with SVG came from this external article, you can read it for more info