我有一个带有以下自定义向导按钮的向导:
<clr-wizard-button [type]="'cancel'">Cancel</clr-wizard-button>
<clr-wizard-button [type]="'previous'">Previous</clr-wizard-button>
<clr-wizard-button [type]="'next'">Next</clr-wizard-button>
<clr-wizard-button [type]="'custom-save'">Save</clr-wizard-button>
现在我想custom-save
用自定义颜色设置类型按钮的样式,为此,我需要应用 css-selector。attr.class
不会工作。
实现这一目标的最佳方法是什么?
编辑:自定义保存按钮的格式化 html 输出:
<clr-wizard-button class="clr-wizard-btn-wrapper" _nghost-c5="" ng-reflect-type="custom-save" ng-reflect-disabled="false" aria-hidden="false">
<button _ngcontent-c5="" class="btn clr-wizard-btn" type="button">
Speichern
</button>
</clr-wizard-button>