Merge pull request #2764 from JaySoni1/WEB-402-add-placeholder-text-to-column-type-dropdown

WEB-402 Add Placeholder Text to Column Type Dropdown
This commit is contained in:
Gopi Kishan
2025-11-05 16:15:26 +05:30
committed by GitHub
@@ -8,7 +8,7 @@
<div class="layout-column">
<mat-form-field>
<mat-label>{{ 'labels.inputs.Column Name' | translate }}</mat-label>
<input matInput required formControlName="name" />
<input matInput required formControlName="name" placeholder="{{ 'labels.inputs.Column Name' | translate }}" />
<mat-error *ngIf="columnForm.controls.name.hasError('required')">
{{ 'labels.inputs.Column Name' | translate }} {{ 'labels.commons.is' | translate }}
<strong>{{ 'labels.commons.required' | translate }}</strong>
@@ -22,11 +22,21 @@
{{ columnType.displayValue | translateKey: 'inputs' }}
</mat-option>
</mat-select>
<mat-error *ngIf="columnForm.controls.type.hasError('required')">
{{ 'labels.inputs.Column Type' | translate }} {{ 'labels.commons.is' | translate }}
<strong>{{ 'labels.commons.required' | translate }}</strong>
</mat-error>
</mat-form-field>
<mat-form-field *ngIf="columnForm.value.type === 'String'">
<mat-label> {{ 'labels.inputs.Column Length' | translate }}</mat-label>
<input matInput required type="number" formControlName="length" />
<input
matInput
required
type="number"
formControlName="length"
placeholder="{{ 'labels.inputs.Column Length' | translate }}"
/>
</mat-form-field>
<mat-form-field *ngIf="columnForm.value.type === 'Dropdown'">