Skip to content

Commit

Permalink
chore(isct-428): added prop inputErrorIconShow to the table-column en…
Browse files Browse the repository at this point in the history
…tity

inputErrorIconShow (default - false) user to show input-inline error as icon in table component v1
  • Loading branch information
AndyKIron committed Oct 13, 2024
1 parent 50671c4 commit 0092774
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@
[type]="inputType"
[sanitationRegex]="sanitationRegex"
[error]="error"
[errorType]="errorType"
[fusionTooltip]="!inputErrorIconShow && error"
[errorType]="inputErrorIconShow ? 'error' : null"
[units]="inputUnits"
unitPos="left"
[options]="{size: 'small'}"
(ngEscape)="cancel()"
[isDisabled]="loading"
[formControl]="inputControl"
></fusion-input>
<fusion-icon class="icon-save" [name]="configByStyle.iconSave" (click)="save()" *ngIf="!loading && !error"></fusion-icon>
<fusion-icon class="icon-save" [name]="configByStyle.iconSave" (click)="save()" *ngIf="!loading && !(inputErrorIconShow)"></fusion-icon>
<fusion-loader [status]="loading" [size]="configByStyle.loadingSize"></fusion-loader>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export abstract class InputInlineBaseComponent implements ControlValueAccessor,
@Input() readOnly: boolean;
@Input() error: string;
@Input() errorType = 'error';
@Input() inputErrorIconShow: boolean;
@Input() currencyPipeParameters: CurrencyPipeParameters;
@Input() inputOptions: InputOptions;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface TableColumn {
groupName?: string;
type?: TableColumnTypeEnum;
inputType?: InlineInputType;
inputErrorIconShow?: boolean; // show error icon in input inline v1
inlineDropdownOptions?: DropdownOption[]; // used for inline dropdown in table v4
totalRowTypeAsString?: boolean; // data type represent in total string. default true
component?: any;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
[formControl]="data"
[loading]="isInRequest$ | async"
[error]="inputError$ | async"
[inputErrorIconShow]="column.inputErrorIconShow"
[readOnly]="isReadOnly"
[currencyPipeParameters]="column?.currencyPipeParameters"
></fusion-input-inline>
Expand Down

0 comments on commit 0092774

Please sign in to comment.