File

src/ui/form/components/row/smart-form.row.ts

Metadata

Index

Inputs
HostBindings
Accessors

Inputs

formItems
Type : SmartFormItemSettings[]
Default value : []
isLastRow
Type : boolean
Default value : false
shouldStretch
Type : boolean
Default value : false
stretchMode
Type : boolean | undefined
Default value : false

HostBindings

style.display
Type : string

Host display style for the row

style.flex
Type : string

Host flex style for the row

style.marginBottom
Type : string | null

Host margin-bottom style for the row

style.minHeight
Type : string | null

Host min-height style for the row

style.overflow
Type : string | null

Host overflow style for the row. Stretching rows clip overflow to prevent content from pushing beyond the bounded area.

Accessors

hostDisplay
gethostDisplay()

Host display style for the row

Returns : string
hostFlex
gethostFlex()

Host flex style for the row

Returns : string
hostOverflow
gethostOverflow()

Host overflow style for the row. Stretching rows clip overflow to prevent content from pushing beyond the bounded area.

Returns : string | null
hostMinHeight
gethostMinHeight()

Host min-height style for the row

Returns : string | null
hostMarginBottom
gethostMarginBottom()

Host margin-bottom style for the row

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;
	}
}


Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""