我想将红色应用于已完成时间列值大于 24 的行。我该怎么做。请帮助我是角度新手。
<kendo-grid [kendoGridBinding]="gridData">
<kendo-grid-column field="RequestNumber" title="Request No."
width="110" >
</kendo-grid-column>
<kendo-grid-column field="RequestNumber" title="Request No." width="110" >
</kendo-grid-column>
<kendo-grid-column field="Name" title="Name." width="110" >
</kendo-grid-column>
<kendo-grid-column field="CompletedIn" title="CompletedIn" width="110" >
</kendo-grid-column>
</kendo-grid>
Run Code Online (Sandbox Code Playgroud) 我对处理语言环境格式的非常特定的数字组件进行了多次测试。使用Karma进行的测试很好,但是一旦将其更改为Jest,就会出现此错误:
NoLocale: Missing locale info for 'de-DE' Solution: http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/#toc-no-locale
我尝试了附件链接中的所有建议,但没有一个成功。
将IntlService被初始化en-US的区域设置ID,所以我改成了每个测试,根据我想断言(格式de-DE或en-GB)。
这些是component.spec.ts中的测试示例:
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NumericTextBoxComponent } from './numeric-textbox.component';
import { FormsModule } from '@angular/forms';
import { CldrIntlService, IntlModule, load } from '@progress/kendo-angular-intl';
describe('NumericTextBoxComponent', () => {
let component: NumericTextBoxComponent;
let fixture: ComponentFixture<NumericTextBoxComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [ FormsModule, IntlModule ],
declarations: [ NumericTextBoxComponent ],
})
.compileComponents();
}));
beforeEach(() => {
fixture = …Run Code Online (Sandbox Code Playgroud)