简体   繁体   English

带图像图标的角材料进度微调器-(mat-spinner)

[英]Angular Material Progress Spinner with Image icons - (mat-spinner)

I Implemented mat-spinner in my project, but it only has few configurable changes like Color, mode of spinning. 我在我的项目中实现了mat-spinner,但是它只有很少的可配置更改,例如颜色,旋转模式。 I want to include Image Icon which is the Logo of a brand/Company inside the spinner, how can i achieve it ? 我想在微调框内包含“图像图标”,它是品牌/公司的徽标,我该如何实现?

Below is the Stackblitz link: 以下是Stackblitz链接:

https://stackblitz.com/angular/lmgppgejqxdv https://stackblitz.com/angular/lmgppgejqxdv

It has mode and color change but how do i include any image to fit inside the progress spinner ? 它具有模式和颜色更改,但是如何在进度条微调器中包含任何图像呢?

you can access the background layer of the spinner using: 您可以使用以下命令访问微调器的背景层:

.mat-progress-spinner svg {
  background: red;
}

Note however that the svg is subject to transforms, so the background may end up being rotated as well. 但是请注意,该svg会进行转换,因此背景可能最终也会旋转。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM