Hello, is there a way how to show validation messages for form group? I've tried:
<nz-form-item *ngIf="operator === SegmentConditionItemOperator.IS" class="mb-0">
<nz-form-control [formGroup]="formGroup" [nzErrorTip]="errorTip" [nzValidateStatus]="formGroup">
<nz-form-item class="mb-0">
<nz-form-label [nzSpan]="4">Period From</nz-form-label>
<nz-form-control [nzSpan]="20">
<nz-date-picker
appCalendarPreset
nzShowTime
formControlName="from"
[nzPlaceHolder]="'core.placeholders.datePicker' | translate"
></nz-date-picker>
</nz-form-control>
</nz-form-item>
<nz-form-item class="mb-0">
<nz-form-label [nzSpan]="4">Period To</nz-form-label>
<nz-form-control [nzSpan]="20">
<nz-date-picker
appCalendarPreset
nzShowTime
formControlName="to"
[nzPlaceHolder]="'core.placeholders.datePicker' | translate"
></nz-date-picker>
</nz-form-control>
</nz-form-item>
</nz-form-control>
</nz-form-item>
<ng-template #errorTip let-control>
<div class="qa_infinite_range" *ngIf="control.hasError('infiniteRange')">
Infinite range
</div>
<div class="qa_rotated_range" *ngIf="control.hasError('rotatedRange')">
Rotated range
</div>
</ng-template>
In editor I can see: Type FormGroup is not assignable to type string | FormControl | FormControlName | NgModel
and it doesn't work in browser.
How to have fixed size checkbox column in nz-table while using nz-resizable directive?
I really need to use the resizable component in the tables of my app, so columns can be redimensionable. I know it's on experimental state, but I need it and its working fine, mostly. Also need to have a first column with checkboxes for selection purposes. I expected the checkbox column to remain fixed size. What is happening is the checkbox column changes width when I resize the other columns.
Here is an example forked from documentation
https://stackblitz.com/edit/angular-jqs53u?embed=1&file=src/app/app.component.ts
Highly appreciate any help.