File

src/ui/frame/abstract-frame.component.ts

Extends

SmartTableIOTargetBase

Implements

OnInit

Index

Properties
Methods
Inputs
Outputs
Accessors

Constructor

constructor(injector: Injector)
Parameters :
Name Type Optional
injector Injector No

Inputs

smart-help-url
Type : string

The help URL

smart-layout-type
Type : SmartFrameLayoutType
smart-logic-classes
Type : string[]
smart-object-name
Type : string
prompt-before-delete
Type : string
smart-event-handlers
Type : SSEHEventHandlerDefinitions
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

Outputs

buttonClicked
Type : EventEmitter<SmartViewerFieldSettings>
inputBlurred
Type : EventEmitter<string>
inputFocused
Type : EventEmitter<string>
inputValueChanged
Type : EventEmitter<InputChangedEventArgs>

Fires when an input belonging to the Smart Viewer changes it's value.

onAfterAddRecord
Type : EventEmitter<AfterAddEventArgument>
onAfterCancelRecord
Type : EventEmitter<AfterCancelEventArgument>
onAfterCopyRecord
Type : EventEmitter<AfterCopyEventArgument>
onAfterDeleteRecord
Type : EventEmitter<AfterDeleteEventArgument>
onAfterEnableFields
Type : EventEmitter<AfterEnableFieldsEventArgument>
onAfterSaveChanges
Type : EventEmitter<AfterSaveChangesEventArgument>
onBeforeAddRecord
Type : EventEmitter<BeforeAddEventArgument>
onBeforeCancelRecord
Type : EventEmitter<BeforeCancelEventArgument>
onBeforeCopyRecord
Type : EventEmitter<BeforeCopyEventArgument>
onBeforeDeleteRecord
Type : EventEmitter<BeforeDeleteEventArgument>
onBeforeEnableFields
Type : EventEmitter<BeforeEnableFieldsEventArgument>
onBeforeSaveChanges
Type : EventEmitter<BeforeSaveChangesEventArgument>

Methods

Public callLogicMethod
callLogicMethod(methodName: string, ...args: any[])

Calls a method on the logic class instances

Parameters :
Name Type Optional Description
methodName string No
  • The method name to call
args any[] No
  • Arguments to pass to the method
Returns : Promise | any

The result of the method call

checkViewersPadding
checkViewersPadding()

Updates the viewer's padding

Returns : void
Public Abstract componentLoaded
componentLoaded()

Used internally. Called when the component has finished loading.

Returns : void
focusField
focusField(fieldToFocus: string)

Moves focus to the specified viewer field input

Parameters :
Name Type Optional Description
fieldToFocus string No

The fully qualified name of the viewer field

Returns : void
Public Abstract getFieldReference
getFieldReference(fieldName: string)
Type parameters :
  • T

Given a field name, returns a field reference

Parameters :
Name Type Optional
fieldName string No
Returns : T

{T}

getTableIoSource
getTableIoSource()

Returns null

null

Public Abstract getWidgetFacade
getWidgetFacade(fieldName: string)

Given a field name, returns a widget facade

Parameters :
Name Type Optional
fieldName string No
Returns : IWidgetFacade

{IWidgetFacade}

handleAdd
handleAdd()

Handles an add operation

Returns : void
handleCancel
handleCancel()

Handles a cancel operation

Returns : void
handleCopy
handleCopy()

Handles a copy operation

Returns : void
handleDelete
handleDelete()

Handles a delete operation

Returns : void
handleLayoutChange
handleLayoutChange(newLayout: any)
Parameters :
Name Type Optional
newLayout any No
Returns : void
handleSave
handleSave()

Handles a save operation

Returns : void
handleUpdate
handleUpdate()

Handles an update operation

Returns : void
handleView
handleView()

Handles a view operation

Returns : void
Public hasDateTimeTZSelectorPreferenceContextMenuItem
hasDateTimeTZSelectorPreferenceContextMenuItem()

Indicates whether DATETIME-TZ usage preference applies to this viewer.

Returns : boolean
Public onViewerContextMenu
onViewerContextMenu(event: MouseEvent)

Shows the viewer preference context menu when applicable.

Parameters :
Name Type Optional Description
event MouseEvent No

The context menu event.

Returns : void
Public onViewerPreferenceContextMenuItemSelected
onViewerPreferenceContextMenuItemSelected(event: ContextMenuSelectEvent)

Handles viewer preference context menu item selection.

Parameters :
Name Type Optional Description
event ContextMenuSelectEvent No

The context menu selection event.

Returns : void
Public Abstract syncToolbarWithTableIOState
syncToolbarWithTableIOState(toolbar: ISmartTableIOSource)

Syncs the toolbar button states with the current state of this table IO target. This method is called when the target is activated and should ensure the toolbar buttons reflect the current state, including any component-specific internal states.

Parameters :
Name Type Optional Description
toolbar ISmartTableIOSource No
  • The toolbar to sync
Returns : void
trackBy
trackBy(index: number)

Tells the UI to track components by index

Parameters :
Name Type Optional
index number No
Returns : number
getDataSource
getDataSource(dataSourceName?: string)

Returns the data source for the table IO target

Parameters :
Name Type Optional Description
dataSourceName string Yes
  • The name of the data source
Abstract getSelectedRecords
getSelectedRecords()
Returns : T[]
Public getToolbarDispatchPolicy
getToolbarDispatchPolicy(button: SmartToolbarButtonComponent)

Returns the policy captured before public toolbar output subscribers run.

Parameters :
Name Type Optional Description
button SmartToolbarButtonComponent No

The clicked toolbar button.

The click-time dispatch policy.

Public handleSuppressedToolbarButton
handleSuppressedToolbarButton(button: SmartToolbarButtonComponent, context: TableIOToolbarDispatchContext)

Performs target-specific UI cleanup after a consumer suppresses central toolbar dispatch.

Parameters :
Name Type Optional Description
button SmartToolbarButtonComponent No

The clicked toolbar button.

context TableIOToolbarDispatchContext No

The accepted click state.

Returns : void
Public handleToolbarButton
handleToolbarButton(button: SmartToolbarButtonComponent, context?: TableIOToolbarDispatchContext)

Handles a toolbar button click routed through the active TableIO target.

Parameters :
Name Type Optional Description
button SmartToolbarButtonComponent No

The clicked toolbar button.

context TableIOToolbarDispatchContext Yes

The accepted click state.

Returns : boolean

True when the target handled the button.

Async registerTableIOTarget
registerTableIOTarget()

Registers the table IO target with the registry

Returns : any
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

domElement
Type : ElementRef
Decorators :
@ViewChild('fakeComponent')
fieldHeightsAdded
Type : boolean
fieldsetHeightsAdded
Type : boolean
helperService
Type : SmartViewerHelperService<AbstractFrameComponent>
isLabelsLeft
Type : boolean
maxDepthValue
Type : number
Default value : 0
smartLookups
Type : QueryList<SmartLookupComponent>
Decorators :
@ContentChildren(SmartLookupComponent)
Public viewerFormFieldsContainer
Type : ViewContainerRef
Decorators :
@ViewChild('formFieldsContainer', {read: ViewContainerRef})
viewerFormPadding
Type : number
Default value : 0
viewerLayout
Type : any
Public viewerPreferencesMenu
Type : ContextMenuComponent
Decorators :
@ViewChild('viewerPreferencesMenu', {read: ContextMenuComponent})
Public viewerPreferencesService
Type : SmartViewerPreferencesService
Public tableIoStateSignal
Type : WritableSignal<TableIOTargetState>
Default value : signal( TableIOTargetState.IDLE )

Signal that tracks the current TableIO operation state. Used for synchronizing state between group assign source/target viewers.

Public injector
Type : Injector

Accessors

readDisabled
getreadDisabled()

Returns whether read access is disabled.

Returns : boolean
setreadDisabled(value: boolean)

Sets whether read access is disabled.

Parameters :
Name Type Optional Description
value boolean No
  • The read disabled state.
Returns : void
hasAbsolutePosition
gethasAbsolutePosition()

Returns whether the frame uses absolute positioning.

Returns : boolean
sethasAbsolutePosition(value: boolean)

Sets whether the frame uses absolute positioning.

Parameters :
Name Type Optional Description
value boolean No
  • The absolute position state.
Returns : void
fields
getfields()

Returns the viewer fields array.

setfields(value: SmartViewerFormItem[])

Sets the viewer fields array.

Parameters :
Name Type Optional Description
value SmartViewerFormItem[] No
  • The fields array.
Returns : void
smartViewerTemplate
setsmartViewerTemplate(value: any)

The Smart Viewer template URL

Parameters :
Name Type Optional
value any No
Returns : void
viewerFormDomElement
getviewerFormDomElement()

The Smart Viewer form HTML element

Returns : ElementRef
setviewerFormDomElement(viewerForm: ElementRef)

The Smart Viewer form HTML element

Parameters :
Name Type Optional
viewerForm ElementRef No
Returns : void
viewerContainerDomElement
getviewerContainerDomElement()

The Smart Viewer container element

Returns : ElementRef
setviewerContainerDomElement(container: ElementRef)

The Smart Viewer container element

Parameters :
Name Type Optional
container ElementRef No
Returns : void
fieldChildren
setfieldChildren(fieldChildren: QueryList<SmartViewerFieldComponent>)

The Smart Viewer child field components

Parameters :
Name Type Optional
fieldChildren QueryList<SmartViewerFieldComponent> No
Returns : void
fieldsetChildren
setfieldsetChildren(fieldsetChildren: QueryList<FieldSetComponent>)

The Smart Viewer fieldset child component

Parameters :
Name Type Optional
fieldsetChildren QueryList<FieldSetComponent> No
Returns : void
helpUrl
gethelpUrl()

The help URL

Returns : string
sethelpUrl(value: string)

The help URL

Parameters :
Name Type Optional
value string No
Returns : void
settings
getsettings()

Returns the Smart Viewer settings.

Returns : SmartFrameSettings
setsettings(value: SmartFrameSettings)

Sets the Smart Viewer settings.

Parameters :
Name Type Optional Description
value SmartFrameSettings No
  • The frame settings.
Returns : void

results matching ""

    No results matching ""