src/ui/form/components/item/smart-form.item.ts
| changeDetection | ChangeDetectionStrategy.Eager |
| providers |
SmartFormItemService
|
| selector | FormItem |
| styleUrls | ./smart-form.item.css, |
| templateUrl | ./smart-form.item.html |
Properties |
|
Inputs |
Accessors |
constructor(formInstanceService: SmartFormInstanceService, formItemService: SmartFormItemService, elementRef: ElementRef
|
|||||||||||||||
|
Parameters :
|
| definition |
Type : SmartFormItemSettings
|
| config |
Type : any
|
| Public Readonly elementRef |
Type : ElementRef<HTMLElement>
|
| formItemContainer |
Type : ViewContainerRef
|
Decorators :
@ViewChild('formItemContainer', {read: ViewContainerRef})
|
| Public Readonly injector |
Type : Injector
|
| type |
Type : string
|
| definition | ||||||
getdefinition()
|
||||||
|
Returns :
SmartFormItemSettings
|
||||||
setdefinition(settings: SmartFormItemSettings)
|
||||||
|
Parameters :
Returns :
void
|
| formInstance |
getformInstance()
|
|
Returns :
SmartFormComponent
|
<!--
**************************************************************************
* 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.item.html
Purpose : Template for Smart Form Item.
Author(s) : Radu Nicoara
Created : Dec 22, 2017
--------------------------------------------------------------------------
-->
<div [ngSwitch]="type" style="height: 100%;" class="zoom-scroll-guard" >
<div #formItemContainer></div>
</div>
./smart-form.item.css
/**********************************************************************
* 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.item.css
Purpose : Styles for Smart Form Item.
Author(s) : Oana Sucigan
Created : Sep 01, 2022
----------------------------------------------------------------------*/
::ng-deep .form-column.vertical-stretch {
display: flex !important;
flex-direction: column !important;
gap: var(--kendo-spacing-1, 0.25rem) !important;
height: 100% !important;
overflow: hidden !important; /* prevent scrollbar from gap overflow in stretch mode */
}
::ng-deep .form-column {
max-height: 100% !important;
}
.smart-form-row.pane-row {
margin-inline-start: 0;
margin-inline-end: 0;
width: 100%;
display: block;
}
::ng-deep smart-filter {
display: block !important;
overflow: auto !important;
}
::ng-deep smart-filter div {
height: 100% !important;
}
::ng-deep smart-split-pane {
height: 100% !important;
}
../../../common/styles/zoom-scroll-guard.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 : zoom-scroll-guard.scss
Purpose : Styles for zoom scroll guard.
Author(s) : Oana Sucigan
Created : Nov 28, 2025
----------------------------------------------------------------------*/
.zoom-scroll-guard {
contain: layout;
}