File

src/ui/viewer/components/field/wrappers/numeric-textbox/smart-numeric-textbox-wrapper.component.ts

Extends

AbstractInputWrapperComponent

Implements

AfterViewInit

Metadata

Index

Properties
Methods
Inputs
Outputs

Constructor

constructor(helperService: SmartViewerHelperService<AbstractFrameComponent>, renderer: Renderer2, elementRef: ElementRef)
Parameters :
Name Type Optional
helperService SmartViewerHelperService<AbstractFrameComponent> No
renderer Renderer2 No
elementRef ElementRef No

Inputs

buttons
Type : EditorButton[]
Default value : []
componentInstance
Type : any
contentStyle
Type : any
field
Type : any
fieldStyle
Type : any
hasAbsolutePosition
Type : boolean
isNumeric
Type : boolean
model
Type : any
selected
Type : any
showDateTimeZone
Type : boolean
useDateTimeZones
Type : boolean

Outputs

modelChange
Type : EventEmitter<any>

Methods

Public handleButtonClick
handleButtonClick(button: EditorButton)

Handles the click of an editor button

Parameters :
Name Type Optional
button EditorButton No
Returns : void
Public updateValue
updateValue(newValue: any)
Parameters :
Name Type Optional
newValue any No
Returns : void

Properties

Public elementRef
Type : ElementRef
enabledStateDirective
Type : EnabledStateDirective
Decorators :
@ViewChild(EnabledStateDirective)
Public helperService
Type : SmartViewerHelperService<AbstractFrameComponent>
smartWidgetDirective
Type : InputFacadeDirective
Decorators :
@ViewChild(InputFacadeDirective)
<!--
**************************************************************************
* 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-numeric-textbox-wrapper.component.html
    Purpose     : Template for Smart Numeric Textbox Wrapper.
    Author(s)   : Radu Nicoara
    Created     : Jan 16, 2024
--------------------------------------------------------------------------
-->
<kendo-numerictextbox
    smart-widget
    #vNumberBox
    [step]="(field.inputSettings && field.inputSettings.step) || 1"
    [format]="field.inputSettings && field.inputSettings.format"
    [enabledState]="field.enabledState"
    [name]="field.fieldName"
    [ngModel]="model"
    (focus)="helperService.inputFocused.next(field.fieldName)"
    (blur)="helperService.inputBlurred.next(field.fieldName)"
    (ngModelChange)="updateValue($event)"
    [attr.dataHelpUrl]="field.inputSettings.helpUrl"
    [min]="minValueLimit$()"
    [max]="maxValueLimit$()"
    [autoCorrect]="true">
    @if (buttons.length > 0) {
        <ng-template kendoSuffixTemplate>
            @for (button of buttons; track button.key) {
                <button
                    kendoButton
                    [iconClass]="button.icon"
                    [smartEditorButton]="button"
                    (editorButtonClicked)="handleButtonClick($event)">
                    {{ button.label }}
                </button>
            }
        </ng-template>
    }
</kendo-numerictextbox>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""