glideapps / glide-data-grid

🚀 Glide Data Grid is a no compromise, outrageously react fast data grid with rich rendering, first class accessibility, and full TypeScript support.
https://grid.glideapps.com
MIT License
4.07k stars 301 forks source link

Use string instead of string[] in ImageCell #966

Open bhavik-cast opened 5 months ago

bhavik-cast commented 5 months ago

They way ImageCell is setup to support multiple images in a single cell, which makes sense. However since for a single image the value of the cell would be in array like [some-image-url] we are stuck due to how our DS's are setup. As far as I understand, there isn't a way to make ImageCell support simple string urls instead of an array.

  1. Is there are simpler way to handle this case?
  2. We are avoiding the use of CustomCell as the data would be {} and it would require a lot of codebase change.

Thank you for the help .

P.S - Love the editor!