src/ui/split-pane/smart-split-pane.component.ts
| changeDetection | ChangeDetectionStrategy.Eager |
| selector | smart-split-pane |
| styleUrls | ./smart-split-pane.component.scss |
| templateUrl | ./smart-split-pane.component.html |
Properties |
Methods |
|
Inputs |
Accessors |
constructor(screenService: SmartScreenService, zone: NgZone, injector: Injector, windowHelperService: FloatingWindowHelperService, smartConfig: SmartConfig, elementRef: ElementRef, renderer: Renderer2)
|
||||||||||||||||||||||||
|
Parameters :
|
| orientation |
Type : Orientation
|
| responsiveOrientation |
Type : ResponsiveOrientation
|
|
orienation set from layout/HTML, directly on the component |
| smart-object-name |
Type : string
|
| style |
Type : any
|
| visibility |
Type : string
|
| ignoreFlexboxLayout |
Type : boolean
|
| smart-help-text |
Type : string | undefined
|
|
Sets the HelpText value for this form child. |
| smart-instance-name |
Type : string
|
|
The instance name of the component |
| Public handleLayoutChange | ||||||
handleLayoutChange(newLayout: any)
|
||||||
|
Parameters :
Returns :
void
|
| Public initSplitviewResponsiveOrientation |
initSplitviewResponsiveOrientation()
|
|
Returns :
void
|
| Public onSplitterBarDragged |
onSplitterBarDragged()
|
|
Returns :
void
|
| setOrientation | ||||||||||||||||
setOrientation(orientation: string, start: number, end: number)
|
||||||||||||||||
|
Parameters :
Returns :
void
|
| Public setPaneVisibility |
setPaneVisibility()
|
|
Returns :
void
|
| Public setResponsiveOrientation | ||||||
setResponsiveOrientation(value: ResponsiveOrientation)
|
||||||
|
Parameters :
Returns :
void
|
| splitViewResized |
splitViewResized()
|
|
Returns :
void
|
| Public notifyLoadingFinished | ||||||
notifyLoadingFinished(objectName: string)
|
||||||
|
Notifies the parent Smart Form that this form child has finished loading
Parameters :
Returns :
void
void |
| kendoPanes |
Type : QueryList<ElementRef>
|
Decorators :
@ViewChildren(SplitterPaneComponent, {read: ElementRef})
|
| leftPane |
Type : ElementRef
|
Decorators :
@ViewChild(SmartSplitLeftPaneComponent, {read: ElementRef, static: true})
|
| onSplitbarDragged |
Type : EventEmitter<void>
|
Default value : new EventEmitter()
|
| rightPane |
Type : ElementRef
|
Decorators :
@ViewChild(SmartSplitRightPaneComponent, {read: ElementRef, static: true})
|
| splitviewEl |
Type : ElementRef
|
Decorators :
@ViewChild('splitView', {read: ElementRef, static: false})
|
| wrap |
Type : ElementRef
|
Decorators :
@ViewChild('wrap', {read: ElementRef, static: true})
|
| Public injector |
Type : Injector
|
| splitterComponent |
getsplitterComponent()
|
|
Returns :
SplitterComponent
|
| orientationSet |
getorientationSet()
|
|
Returns :
boolean
|
| responsiveOrientationSet |
getresponsiveOrientationSet()
|
|
Returns :
boolean
|
| style | ||||||
getstyle()
|
||||||
|
Returns :
any
|
||||||
setstyle(value: any)
|
||||||
|
Parameters :
Returns :
void
|
| paneVisible | ||||||||
getpaneVisible()
|
||||||||
|
Returns the pane visibility state.
Returns :
boolean
|
||||||||
setpaneVisible(value: boolean)
|
||||||||
|
Sets the pane visibility state.
Parameters :
Returns :
void
|
| visibility | ||||||
getvisibility()
|
||||||
|
Returns :
string
|
||||||
setvisibility(value: string)
|
||||||
|
Parameters :
Returns :
void
|
| orientation | ||||||
getorientation()
|
||||||
|
Returns :
Orientation
|
||||||
setorientation(value: Orientation)
|
||||||
|
Parameters :
Returns :
void
|
| responsiveOrientation | ||||||
getresponsiveOrientation()
|
||||||
|
Returns :
ResponsiveOrientation
|
||||||
setresponsiveOrientation(value: ResponsiveOrientation)
|
||||||
|
orienation set from layout/HTML, directly on the component
Parameters :
Returns :
void
|
<!--
**************************************************************************
* 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-split-pane.component.html
Purpose : Template for Smart Split Pane.
Author(s) : Radu Nicoara
Created : Dec 07, 2017
--------------------------------------------------------------------------
-->
<div class="row" #wrap [hidden]="_paneVisibleSignal() !== false">
<left-pane>
<ng-content select="[left-pane]"></ng-content>
</left-pane>
<right-pane>
<ng-content select="[right-pane]"></ng-content>
</right-pane>
</div>
<kendo-splitter [orientation]="_orientationSignal() || 'horizontal'" #splitView [hidden]="_paneVisibleSignal() === false" [ngStyle]="_styleSignal()">
<kendo-splitter-pane
size="50%"
(sizeChange)="onSplitterBarDragged()"
>
<div #left class="pane-content"></div>
</kendo-splitter-pane>
<kendo-splitter-pane>
<div #right class="pane-content"></div>
</kendo-splitter-pane>
</kendo-splitter>
<kendo-resize-sensor (resize)="splitViewResized()"></kendo-resize-sensor>
./smart-split-pane.component.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-split-pane.component.scss
Purpose : Styles for Smart Split Pane.
Author(s) : Radu Nicoara
Created : Jan 10, 2018
----------------------------------------------------------------------*/
:host {
display: block;
}
::ng-deep *[hidden] {
display: none !important;
}
::ng-deep kendo-splitter-pane left-pane [left-pane],
::ng-deep kendo-splitter-pane right-pane [right-pane] {
padding: var(--kendo-spacing-2, 0.5rem) !important;
height: 100% !important; /* not sure this is ok */
}
::ng-deep .pane-content {
height: 100%;
max-width: 100%;
width: 100%;
}
::ng-deep .pane-content > left-pane, .pane-content > right-pane {
height: 100%;
}
::ng-deep .pane-content right-pane [right-pane] .row,
::ng-deep .pane-content left-pane [left-pane] .row {
margin-left: 0px;
margin-right: 0px;
height: 100% !important; /* not sure this is ok */
}
::ng-deep .pane-content right-pane [right-pane] .row smart-toolbar,
::ng-deep .pane-content left-pane [left-pane] .row smart-toolbar {
padding-left: 0px;
padding-right: 0px;
}
::ng-deep .pane-content right-pane [right-pane] .row .form-column,
::ng-deep .pane-content left-pane [left-pane] .row .form-column {
padding-left: 0px !important;
padding-right: 0px !important;
}
::ng-deep .k-splitbar-horizontal {
width: 3px !important;
}
::ng-deep .k-splitbar-vertical {
height: 3px !important;
}
::ng-deep .k-splitter.k-splitbar-horizontal FormItem {
padding-left: 0px !important;
padding-right: 0px !important;
}