File

src/ui/split-pane/smart-split-pane.component.ts

Extends

AbstractFormChild

Implements

AfterViewInit OnDestroy

Metadata

Index

Properties
Methods
Inputs
Accessors

Constructor

constructor(screenService: SmartScreenService, zone: NgZone, injector: Injector, windowHelperService: FloatingWindowHelperService, smartConfig: SmartConfig, elementRef: ElementRef, renderer: Renderer2)
Parameters :
Name Type Optional
screenService SmartScreenService No
zone NgZone No
injector Injector No
windowHelperService FloatingWindowHelperService No
smartConfig SmartConfig No
elementRef ElementRef No
renderer Renderer2 No

Inputs

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

Methods

Public handleLayoutChange
handleLayoutChange(newLayout: any)
Parameters :
Name Type Optional
newLayout any No
Returns : void
Public initSplitviewResponsiveOrientation
initSplitviewResponsiveOrientation()
Returns : void
Public onSplitterBarDragged
onSplitterBarDragged()
Returns : void
setOrientation
setOrientation(orientation: string, start: number, end: number)
Parameters :
Name Type Optional Default value
orientation string No
start number No 0
end number No 4
Returns : void
Public setPaneVisibility
setPaneVisibility()
Returns : void
Public setResponsiveOrientation
setResponsiveOrientation(value: ResponsiveOrientation)
Parameters :
Name Type Optional
value ResponsiveOrientation No
Returns : void
splitViewResized
splitViewResized()
Returns : void
Public notifyLoadingFinished
notifyLoadingFinished(objectName: string)

Notifies the parent Smart Form that this form child has finished loading

Parameters :
Name Type Optional
objectName string No
Returns : void

void

Properties

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

Accessors

splitterComponent
getsplitterComponent()
Returns : SplitterComponent
orientationSet
getorientationSet()
Returns : boolean
responsiveOrientationSet
getresponsiveOrientationSet()
Returns : boolean
style
getstyle()
Returns : any
setstyle(value: any)
Parameters :
Name Type Optional
value any No
Returns : void
paneVisible
getpaneVisible()

Returns the pane visibility state.

Returns : boolean
setpaneVisible(value: boolean)

Sets the pane visibility state.

Parameters :
Name Type Optional Description
value boolean No
  • The visibility state.
Returns : void
visibility
getvisibility()
Returns : string
setvisibility(value: string)
Parameters :
Name Type Optional
value string No
Returns : void
orientation
getorientation()
Returns : Orientation
setorientation(value: Orientation)
Parameters :
Name Type Optional
value Orientation No
Returns : void
responsiveOrientation
getresponsiveOrientation()
setresponsiveOrientation(value: ResponsiveOrientation)

orienation set from layout/HTML, directly on the component

Parameters :
Name Type Optional
value ResponsiveOrientation No
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;
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""