简体   繁体   English

无法使用 ng2-pdfjs-viewer 自定义图标

[英]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.

相关问题 ng 服务“无法获取 /” - ng serve "Cannot GET /" 需要在 Spartacus 4.3 中自定义 OOTB '/search' PLP API (GET to POST) - Need to customize OOTB '/search' PLP API (GET to POST) in Spartacus 4.3 无法在开发模式下运行 ng serve - can't run ng serve in development mode 运行`ng build`时如何确定破坏NGCC的依赖关系? - How can I determine the Dependency that is breaking NGCC when running `ng build`? 我正在尝试将 angular 12 升级到 14 但我在 GitLab 管道 ng-toolkit/universal 中遇到了这个问题 - I am trying to upgrade angular 12 to 14 but I am getting this issue in GitLab pipeline ng-toolkit/universal Angular 12 Material 显示无法读取 MatFormField 的未定义属性错误状态 - Angular 12 Material shows cannot read property errorstate undefined of MatFormField 错误类型错误:无法读取未定义的属性(读取“数量”)- Angular 12 - ERROR TypeError: Cannot read properties of undefined (reading 'quantity') - Angular 12 无法让 ColorThief 在 Angular 中正常工作,找不到库方法? - Cannot get ColorThief to work correctly in Angular, library methods are not found? NGRX 在初始化前无法访问“USER_FEATURE” - NGRX Cannot access 'USER_FEATURE' before initialization 目标入口点“ng-network-status”缺少依赖项:- rxjs/Rx - The target entry-point "ng-network-status" has missing dependencies: - rxjs/Rx
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM