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
Highly appreciate any help.
Im trying to use a ng-zorro table which has a footer (rendered via a template) where that footer has multiple rows, but am struggling to determine the correct way to do this. The documentation only seems to show an example of rendering a footer string for all columns of the table.
If I have a table that has 4 columns, I would like two footer rows where on the first row the footer consists of 2 columns, each spanning 2 columns, and the second footer row spans all columns.
How/can this be achieved?