Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含一堆不同值的表格,我想根据值将每个单元格设置为具有某种颜色。我怎样才能在 Slate 中做到这一点?
Slate 表格小部件将呈现内联 HTML 和 CSS,因此常见模式是在您的查询和结果表格之间添加一个函数,映射需要样式的列的值,并添加标记 CSS 类,您可以然后根据需要设置样式。
在您的 Foundry 实例中,搜索Styling Tables以查找常见样式模式的可靠参考示例以及在应用不同格式的情况下保持可排序性的注意事项。
Styling Tables