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

Formatting cells #15

Open
Addibro opened this issue Jun 16, 2021 · 6 comments
Open

Formatting cells #15

Addibro opened this issue Jun 16, 2021 · 6 comments

Comments

@Addibro
Copy link

Addibro commented Jun 16, 2021

Hello!

Is there a way to provide any formatting to the cells? Like adding alignment, different types than strings etc.

Thanks!

@rdunk
Copy link
Owner

rdunk commented Jun 30, 2021

Hi @Addibro. Not currently, as rows are essentially an array of strings. I did originally want to keep this a straightforward data type, I've never personally encountered a need for objects but I see that it would probably be useful for a lot of people.

I'm wondering if it would be preferable to expand the configuration to allow people to define their own cell data schema. I'd need to have a bit of a think about how the input component would handle that, but does that sound of interest?

@Addibro
Copy link
Author

Addibro commented Aug 10, 2021

Absolutely, that would make the table truly generic. If you have the time and will, that would be an awesome addition to this plugin :)

@mitchuman
Copy link

Would also be nice to have colspan and rowspan options as well

@Schemata
Copy link

I'd like to preset columns (3) with headings and the author just adds rows... is that possible?

@andrem0
Copy link

andrem0 commented Sep 14, 2022

Multiline, list and hyperlinks would be a nice upgrade.

@davydog187
Copy link

@Addibro @mitchuman @Schemata @andrem0 I just released Sanity Portable Table that adds support for Portable Text cells. Please open an issue for feedback / questions. PRs welcome

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

6 participants