[英]cannot customize the icons using ng2-pdfjs-viewer
I am using ng2-pdfjs-viewer to display the pdf document.我正在使用 ng2-pdfjs-viewer 来显示 pdf 文档。 I use Angular version 12. I am able to customize its style in the viewer.css file under assets/pdfjs/web/viewer.css.
我使用 Angular 版本 12。我可以在资产/pdfjs/web/viewer.css 下的 viewer.css 文件中自定义其样式。
The design library which i am using in my project is carbon design system.我在我的项目中使用的设计库是碳设计系统。 I am trying to make use of the carbon components like search icon/arrow icon.
我正在尝试使用搜索图标/箭头图标等碳组件。 I cannot get it working since i have the css and html files under the assets folder.
我无法让它工作,因为我在资产文件夹下有 css 和 html 文件。
i am able to use carbon components in all other components but not in the files under assets folder.我可以在所有其他组件中使用碳组件,但不能在资产文件夹下的文件中使用。 Is there a way to achieve this?
有没有办法做到这一点? Any help/suggestion is appreciated!
任何帮助/建议表示赞赏! Thanks
谢谢
I figured out the answer!我想出了答案! I had to have the carbon icons under
assets/pdfjs/web/images
and made use of those in the app.我必须在
assets/pdfjs/web/images
下有碳图标,并在应用程序中使用它们。 Problem solved.问题解决了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.