src/ui/form/components/row/smart-form.row.ts
| changeDetection | ChangeDetectionStrategy.Eager |
| selector | FormRow |
| styleUrls | ./smart-form.row.scss |
| templateUrl | ./smart-form.row.html |
Inputs |
HostBindings |
Accessors |
| formItems |
Type : SmartFormItemSettings[]
|
Default value : []
|
| isLastRow |
Type : boolean
|
Default value : false
|
| shouldStretch |
Type : boolean
|
Default value : false
|
| stretchMode |
Type : boolean | undefined
|
Default value : false
|
| style.display |
Type : string
|
|
Host |
| style.flex |
Type : string
|
|
Host |
| style.marginBottom |
Type : string | null
|
|
Host |
| style.minHeight |
Type : string | null
|
|
Host |
| style.overflow |
Type : string | null
|
|
Host |
| hostDisplay |
gethostDisplay()
|
|
Host
Returns :
string
|
| hostFlex |
gethostFlex()
|
|
Host
Returns :
string
|
| hostOverflow |
gethostOverflow()
|
|
Host
Returns :
string | null
|
| hostMinHeight |
gethostMinHeight()
|
|
Host
Returns :
string | null
|
| hostMarginBottom |
gethostMarginBottom()
|
|
Host
Returns :
string | null
|
| effectiveStretchMode |
geteffectiveStretchMode()
|
|
Effective stretch mode for the row
Returns :
boolean
|
<!--
**************************************************************************
* Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") - *
* www.consultingwerk.com and other contributors as listed *
* below. All Rights Reserved. *
* *
* Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY *
* KIND, either express or implied. *
* *
* Contributors: *
* *
**************************************************************************
--------------------------------------------------------------------------
File : smart-form.row.html
Purpose : Template for Smart Form Row.
Author(s) : Radu Nicoara
Created : Aug 21, 2025
--------------------------------------------------------------------------
-->
<div
class="d-flex w-100"
[style.align-items]="effectiveStretchMode ? 'stretch' : null"
style="min-width: 0; overflow-x: hidden"
>
@for (item of formItems; track item; let i = $index) {
<FormItem
class="smart-form-item"
[ngClass]="{ first: i === 0 }"
style="margin-inline: 0px; min-width: 0"
[definition]="item"
>
</FormItem>
}
</div>
./smart-form.row.scss
/**********************************************************************
* Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") - *
* www.consultingwerk.com and other contributors as listed *
* below. All Rights Reserved. *
* *
* Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY *
* KIND, either express or implied. *
* *
* Contributors: *
* *
**********************************************************************/
/*------------------------------------------------------------------------
File : smart-form.row.scss
Purpose : Styles for Smart Form Row.
Author(s) : Radu Nicoara
Created : Aug 21, 2025
----------------------------------------------------------------------*/
.d-flex {
gap: 0.5rem;
}
.smart-form-item {
min-width: 0;
}
@media (max-width: 991px) {
.d-flex:not(.flex-fill) {
flex-direction: column;
}
.smart-form-item {
width: 100% !important;
margin-bottom: 0.5rem;
}
.smart-form-item:last-child {
margin-bottom: 0;
}
}