ag-grid:如何连接自定义主题?

问题描述 投票:1回答:1

我正在为我的项目使用ag-grid库。文档说你可以添加你的own theme。我编写了我的主题。 On the output我有一个sass文件。如何将其正确连接到我的项目?

javascript web ag-grid
1个回答
1
投票

你在用webpack吗?只需在你的.scss文件中引用它:`@import'path / to / your / theme / file'。

如果你想将scss转换为css,你可以使用这个在线工具:https://www.cssportal.com/scss-to-css/。并从中创建css,并在html文件中引用它。

© www.soinside.com 2019 - 2024. All rights reserved.