gpt4 book ai didi

css - 在使用 google orgchart API 时是否有向特定节点添加类的方法?

转载 作者:太空宇宙 更新时间:2023-11-04 14:31:20 24 4
gpt4 key购买 nike

我正在使用 google org chart API.我想为特定节点设置样式,但无论如何我都看不到在特定节点上添加类名或 ID,然后使用 css 设置样式。

我看到您可以在所有节点上更改样式,但无论如何我看不到在单个节点上执行此操作

这可能吗?

最佳答案

您可以为要设置样式的节点的 DataTable 行设置“style”和“selectedStyle”属性(参见 OrgChart custom properties)。

如果您特别需要使用一个类,那么您唯一的选择是设置单元格的格式化值以将内容包装在 <div> 中。与所需的类。

关于css - 在使用 google orgchart API 时是否有向特定节点添加类的方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19150178/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com