projects/wms-framework/src/lib/models/controls/DataGridModel.ts
Model class to represent DataGrid component
constructor()
|
Creates an instance of DataGridModel. |
Static AlternatingRowBackgroundProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty('AlternatingRowBackground', null, null)
|
AlternatingRowBackgroundProperty dependency property |
Public AngularComponentId |
Default value : AngularComponentId.dataGrid
|
Inherited from
UIElement
|
Defined in
UIElement:462
|
AreRowDetailsFrozen |
Type : boolean
|
Decorators :
@Dependency(DataGridModel.AreRowDetailsFrozenProperty)
|
Are row details frozen property Set this property to true disable section´s horizontal scroll. |
Static AreRowDetailsFrozenProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty('AreRowDetailsFrozen', null, null)
|
AreRowDetailsFrozenProperty dependency property |
Static AreRowGroupHeadersFrozenProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty('AreRowGroupHeadersFrozen', null, null)
|
AreRowGroupHeadersFrozenProperty dependency property |
AutoGenerateColumns |
Type : boolean
|
Decorators :
@Dependency(DataGridModel.AutoGenerateColumnsProperty)
|
The autogenerate columns property |
Static AutoGenerateColumnsProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty('AutoGenerateColumns', true, null)
|
AutoGenerateColumnsProperty dependency property |
CanUserReorderColumns |
Type : boolean
|
Decorators :
@Dependency(DataGridModel.CanUserReorderColumnsProperty)
|
Indicates whether the user can change the column display order by dragging column headers with the mouse. |
Static CanUserReorderColumnsProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty('CanUserReorderColumns', true, null)
|
CanUserReorderColumnsProperty dependency property |
CanUserResizeColumns |
Type : boolean
|
Decorators :
@Dependency(DataGridModel.CanUserResizeColumnsProperty)
|
Indicates whether the user can adjust column widths using the mouse. |
Static CanUserResizeColumnsProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty('CanUserResizeColumns', true, null)
|
CanUserResizeColumnsProperty dependency property |
CanUserSortColumns |
Type : boolean
|
Decorators :
@Dependency(DataGridModel.CanUserSortColumnsProperty)
|
Indicates whether the user can sort columns by clicking the column header. |
Static CanUserSortColumnsProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty('CanUserSortColumns', true, null)
|
CanUserSortColumnsProperty dependency property |
Static CellStyleProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'CellStyle',
null,
null
)
|
CellStyleProperty dependency property |
Static ClipboardCopyModeProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'ClipboardCopyMode',
null,
null
)
|
ClipboardCopyModeProperty dependency property |
Public collectionChangedSubscription |
Type : function
|
Subscription for the CollectionChanged event of the items source (if exists) |
ColumnHeaderHeight |
Type : number
|
Decorators :
@Dependency(DataGridModel.ColumnHeaderHeightProperty)
|
The colum header height |
Static ColumnHeaderHeightProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty('ColumnHeaderHeight', 0, null)
|
ColumnHeaderHeightProperty dependency property |
ColumnHeaderStyle |
Type : RuntimeStyleInfo
|
Decorators :
@Dependency(DataGridModel.ColumnHeaderStyleProperty)
|
ColumnHeaderStyle property |
Static ColumnHeaderStyleProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'ColumnHeaderStyle',
null,
null
)
|
ColumnHeaderStyleProperty dependency property |
Columns |
Default value : new ObservableCollection<DataGridColumnModel>()
|
ColumnWidth |
Type : DataGridLengthModel
|
Decorators :
@Dependency(DataGridModel.ColumnWidthProperty)
|
The column width |
Static ColumnWidthProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'ColumnWidth',
null,
null
)
|
ColumnWidthProperty dependency property |
CurrentCellChanged |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent<(sender: any, e: any) => void>()
|
Event to check when the current cell selected changed |
CurrentColumn |
Type : DataGridColumnModel
|
Static DragIndicatorStyleProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty('DragIndicatorStyle', null, null)
|
DragIndicatorStyleProperty dependency property |
Static DropLocationIndicatorStyleProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty('DropLocationIndicatorStyle', null, null)
|
DropLocationIndicatorStyleProperty dependency property |
FrozenColumnCount |
Type : number
|
Decorators :
@Dependency(DataGridModel.FrozenColumnCountProperty)
|
Number of columns that cannot be scrolled horizontally |
Static FrozenColumnCountProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'FrozenColumnCount',
0,
null
)
|
FrozenColumnCountProperty dependency property |
GridLinesVisibility |
Type : any
|
Decorators :
@Dependency(DataGridModel.GridLinesVisibilityProperty)
|
The grid lines visibility |
Static GridLinesVisibilityProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty('GridLinesVisibility', 'Horizontal', null)
|
GridLinesVisibilityProperty dependency property |
HeadersVisibility |
Type : DataGridHeadersVisibility
|
Decorators :
@Dependency(DataGridModel.HeadersVisibilityProperty)
|
Gets or sets a value that indicates the visibility of row and column headers. |
Static HeadersVisibilityProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'HeadersVisibility',
DataGridHeadersVisibility.Column,
null
)
|
HeadersVisibilityProperty dependency property |
Static HorizontalGridLinesBrushProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty('HorizontalGridLinesBrush', null, null)
|
HorizontalGridLinesBrushProperty dependency property |
Static HorizontalScrollBarVisibilityProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty('HorizontalScrollBarVisibility', null, null)
|
HorizontalScrollBarVisibilityProperty dependency property |
IsReadOnly |
Type : boolean
|
Decorators :
@Dependency(DataGridModel.IsReadOnlyProperty)
|
Is readonly datagrid |
Static IsReadOnlyProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'IsReadOnly',
false,
null
)
|
IsReadOnlyProperty dependency property |
IsValid |
Type : boolean
|
Decorators :
@Dependency(DataGridModel.IsValidProperty)
|
Is valid property |
Static IsValidProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'IsValid',
false,
null
)
|
IsValidProperty dependency property |
Public ItemsSource |
Type : any
|
Decorators :
@Dependency(DataGridModel.ItemsSourceProperty)
|
The items source |
Public ItemsSourceArray |
Type : any[]
|
The ItemsSource value as an array of values |
Static ItemsSourceProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'ItemsSource',
null,
DataGridModel.itemsSourceChanged
)
|
ItemsSourceProperty dependency property |
MaxColumnWidth |
Type : number
|
Decorators :
@Dependency(DataGridModel.MaxColumnWidthProperty)
|
The max column width |
Static MaxColumnWidthProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'MaxColumnWidth',
0,
null
)
|
MaxColumnWidthProperty dependency property |
MinColumnWidth |
Type : number
|
Decorators :
@Dependency(DataGridModel.MinColumnWidthProperty)
|
The minimum column width |
Static MinColumnWidthProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'MinColumnWidth',
20,
null
)
|
MinColumnWidthProperty dependency property |
Static RowBackgroundProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'RowBackground',
null,
null
)
|
RowBackgroundProperty dependency property |
Static RowDetailsTemplateProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty('RowDetailsTemplate', null, null)
|
RowDetailsTemplateProperty dependency property |
RowDetailsVisibilityMode |
Type : any
|
Decorators :
@Dependency(DataGridModel.RowDetailsVisibilityModeProperty)
|
The row details visibility mode |
Static RowDetailsVisibilityModeProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty('RowDetailsVisibilityMode', null, null)
|
RowDetailsVisibilityModeProperty dependency property |
Static RowHeaderStyleProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'RowHeaderStyle',
null,
null
)
|
RowHeaderStyleProperty dependency property |
RowHeaderWidth |
Type : number
|
Decorators :
@Dependency(DataGridModel.RowHeaderWidthProperty)
|
The row header width |
Static RowHeaderWidthProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'RowHeaderWidth',
0,
null
)
|
RowHeaderWidthProperty dependency property |
RowHeight |
Type : number
|
Decorators :
@Dependency(DataGridModel.RowHeightProperty)
|
The row height |
Static RowHeightProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'RowHeight',
0,
null
)
|
RowHeightProperty dependency property |
RowStyle |
Type : RuntimeStyleInfo
|
Decorators :
@Dependency(DataGridModel.RowStyleProperty)
|
The row style |
Static RowStyleProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'RowStyle',
null,
DataGridModel.OnRowStyleChangedCallback
)
|
RowStyleProperty dependency property |
ScrolledIntoView |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent<(row: number, col: number) => void>()
|
Event to check when the ScrollIntoView method have been called |
selectableSettings |
Type : any
|
This settings enables the selection mode in the kendo grid |
SelectedColumnIndex |
Type : number
|
The selected column index |
SelectedIndex |
Type : number
|
Decorators :
@Dependency(DataGridModel.SelectedIndexProperty)
|
The selected index |
Static SelectedIndexProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'SelectedIndex',
null,
null
)
|
SelectedIndexProperty dependency property |
SelectedItem |
Type : any
|
Decorators :
@Dependency(DataGridModel.SelectedItemProperty)
|
The selected item |
Static SelectedItemProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'SelectedItem',
null,
null
)
|
SelectedItemProperty dependency property |
SelectedItems |
Type : IList<unknown>
|
Default value : null
|
The selected items |
SelectionChanged |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent<(sender: any, e: any) => void>()
|
Occurs when the SelectedItem or SelectedItems property value changes. |
SelectionMode |
Type : any
|
Decorators :
@Dependency(DataGridModel.SelectionModeProperty)
|
The selection mode |
Static SelectionModeProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'SelectionMode',
null,
null
)
|
SelectionModeProperty dependency property |
Static VerticalGridLinesBrushProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty('VerticalGridLiinesBrush', null, null)
|
VerticalGridLinesBrushProperty dependency property |
Static VerticalScrollBarVisibilityProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty('VerticalScrollBarVisibility', null, null)
|
VerticalScrollBarVisibilityProperty dependency property |
avoidTemplateModelResolution |
Type : boolean
|
Inherited from
Control
|
Defined in
Control:431
|
Flag to determine if the default template must used instead of the dynamic template when resolving the component to use to render the current control. When a control model has a control template associated, the component of the control template is used to render the current model |
Public Background |
Type : Brush
|
Decorators :
@Dependency(Control.BackgroundProperty)
|
Inherited from
Control
|
Defined in
Control:255
|
Gets or sets the background property |
Static BackgroundProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'Background',
null,
null
)
|
Inherited from
Control
|
Defined in
Control:45
|
BackgroundProperty dependency property |
Public BorderBrush |
Type : any
|
Decorators :
@Dependency(Control.BorderBrushProperty)
|
Inherited from
Control
|
Defined in
Control:264
|
Gets or sets the border brush |
Static BorderBrushProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'BorderBrush',
null,
null
)
|
Inherited from
Control
|
Defined in
Control:59
|
BorderBrushProperty dependency property |
Public BorderThickness |
Type : any
|
Decorators :
@Dependency(Control.BorderThicknessProperty)
|
Inherited from
Control
|
Defined in
Control:273
|
Gets or sets the border thickness |
Static BorderThicknessProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'BorderThickness',
null,
null
)
|
Inherited from
Control
|
Defined in
Control:72
|
BorderThicknessProperty dependency property |
Static CharacterSpacingProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'CharacterSpacing',
null,
null
)
|
Inherited from
Control
|
Defined in
Control:85
|
CharacterSpacingProperty dependency property |
Public DefaultStyleKey |
Type : unknown
|
Inherited from
Control
|
Defined in
Control:367
|
Static DefaultStyleKeyProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'DeafaultStyleKey',
null,
null
)
|
Inherited from
Control
|
Defined in
Control:98
|
DefaultStyleKeyProperty dependency property |
Public FontFamily |
Type : any
|
Decorators :
@Dependency(Control.FontFamilyProperty)
|
Inherited from
Control
|
Defined in
Control:282
|
Gets or sets the font family |
Static FontFamilyProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'FontFamily',
null,
null
)
|
Inherited from
Control
|
Defined in
Control:111
|
FontFamilyProperty dependency property |
Public FontSize |
Type : number
|
Decorators :
@Dependency(Control.FontSizeProperty)
|
Inherited from
Control
|
Defined in
Control:291
|
Gets or sets the font size |
Static FontSizeProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'FontSize',
null,
null
)
|
Inherited from
Control
|
Defined in
Control:124
|
FontSizeProperty dependency property |
Public FontStretch |
Type : any
|
Decorators :
@Dependency(Control.FontStretchProperty)
|
Inherited from
Control
|
Defined in
Control:300
|
Gets or sets the font stretch |
Static FontStretchProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'FontStretch',
null,
null
)
|
Inherited from
Control
|
Defined in
Control:137
|
FontStretchProperty dependency property |
Public FontStyle |
Type : any
|
Decorators :
@Dependency(Control.FontStyleProperty)
|
Inherited from
Control
|
Defined in
Control:309
|
Gets or sets the font style |
Static FontStyleProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'FontStyle',
null,
null
)
|
Inherited from
Control
|
Defined in
Control:150
|
FontStyleProperty dependency property |
Public FontWeight |
Type : any
|
Decorators :
@Dependency(Control.FontWeightProperty)
|
Inherited from
Control
|
Defined in
Control:318
|
Gets or sets the font weight |
Static FontWeightProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'FontWeight',
null,
null
)
|
Inherited from
Control
|
Defined in
Control:163
|
FontWeightProperty dependency property |
Public Foreground |
Type : any
|
Decorators :
@Dependency(Control.ForegroundProperty)
|
Inherited from
Control
|
Defined in
Control:327
|
Gets or sets the foreground |
Static ForegroundProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'Foreground',
null,
null
)
|
Inherited from
Control
|
Defined in
Control:176
|
ForegroundProperty dependency property |
Public IsEnabledChanged |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent()
|
Inherited from
Control
|
Defined in
Control:374
|
The IsEnabledChanged event |
Public IsTabStop |
Type : boolean
|
Decorators :
@Dependency(Control.IsTabStopProperty)
|
Inherited from
Control
|
Defined in
Control:336
|
Gets or sets the is tab stop property |
Static IsTabStopProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'IsTabStop',
true,
null
)
|
Inherited from
Control
|
Defined in
Control:189
|
IsTabStopProperty dependency property |
Public Padding |
Type : any
|
Decorators :
@Dependency(Control.PaddingProperty)
|
Inherited from
Control
|
Defined in
Control:345
|
Gets or sets the padding |
Static PaddingProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'Padding',
null,
null
)
|
Inherited from
Control
|
Defined in
Control:202
|
PaddingProperty dependency property |
Public TabIndex |
Type : number
|
Decorators :
@Dependency(Control.TabIndexProperty)
|
Inherited from
Control
|
Defined in
Control:354
|
Gets or sets the tab index |
Static TabIndexProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'TabIndex',
0,
null
)
|
Inherited from
Control
|
Defined in
Control:215
|
TabIndexProperty dependency property |
TabNavigation |
Type : any
|
Default value : null
|
Inherited from
Control
|
Defined in
Control:365
|
Static TabNavigationProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'TabNavigation',
null,
null
)
|
Inherited from
Control
|
Defined in
Control:228
|
TabNavigationProperty dependency property |
Public Template |
Type : any
|
Decorators :
@Dependency(Control.TemplateProperty)
|
Inherited from
Control
|
Defined in
Control:363
|
Gets or sets the template |
templateModel |
Type : any
|
Inherited from
Control
|
Defined in
Control:418
|
Model for the control template This property has value when a |
Static TemplateProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'TemplateProperty',
null,
Control.TemplateCallback
)
|
Inherited from
Control
|
Defined in
Control:241
|
TemplateProperty dependency property |
Public ActualHeight |
Type : number
|
Decorators :
@Dependency(FrameworkElement.ActualHeightProperty)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:905
|
Static ActualHeightProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'ActualHeight',
0,
null
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:53
|
ActualHeightProperty dependency property |
Public ActualWidth |
Type : number
|
Decorators :
@Dependency(FrameworkElement.ActualWidthProperty)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:908
|
Static ActualWidthProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'ActualWidth',
0,
null
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:66
|
ActualWidthProperty dependency property |
allowDataContextAnchestorSet |
Default value : true
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:738
|
Public Clip |
Type : any
|
Decorators :
@Dependency(FrameworkElement.ClipProperty)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:660
|
Gets or sets the clip |
Public ctxMenuManager |
Type : ContextMenuManager
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:725
|
Instance related to a XamContextMenuComponent |
Public CtxMenuOpened |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:602
|
Context menu opened event |
Private currentStyleChange |
Type : string[]
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:320
|
Public Cursor |
Type : Cursor
|
Decorators :
@Dependency(FrameworkElement.CursorProperty)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:652
|
Gets or sets the cursor |
Static CursorProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'Cursor',
null,
null
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:79
|
CursorProperty dependency property |
Static DataContextProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'DataContext',
null,
FrameworkElement.DataContextCallback
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:92
|
DataContextProperty dependency property |
Public FlowDirection |
Type : any
|
Decorators :
@Dependency(FrameworkElement.FlowDirectionProperty)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:668
|
Gets or sets the flow direction |
Static FlowDirectionProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'FlowDirection',
null,
null
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:105
|
FlowDirectionProperty dependency property |
Public hasFocus |
Default value : false
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:624
|
Flag to determine if the framework element has the docus |
height |
Type : number
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:802
|
Static Readonly HeightProperty |
Default value : new DependencyProperty(
'Height',
Number.NaN,
FrameworkElement.HeightChangeCallback
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:118
|
HeightProperty dependency property |
Public HorizontalAlignment |
Type : HorizontalAlignment
|
Decorators :
@Dependency(FrameworkElement.HorizontalAlignmentProperty)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:755
|
Gets or sets the horizontal alignment |
Static HorizontalAlignmentProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'HorizontalAlignment',
HorizontalAlignment.Stretch,
null
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:131
|
HorizontalAlignmentProperty dependency property |
Public HorizontalContentAlignment |
Type : HorizontalAlignment
|
Decorators :
@Dependency(FrameworkElement.HorizontalContentAlignmentProperty)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:764
|
Gets or sets the horizontal content alignment. |
Static Readonly HorizontalContentAlignmentProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'HorizontalContentAlignment',
HorizontalAlignment.Center,
null
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:145
|
HorizontalContentAlignment dependency property. |
Protected isDefaultStyleApplied |
Type : boolean
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:917
|
Indicates if the current style is from a default style |
Public IsEnabled |
Type : boolean
|
Decorators :
@Dependency(FrameworkElement.IsEnabledProperty)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:635
|
Gets value indicating if the control is enabled /// TODO check property defined in Control instead of framework element |
Static Readonly IsEnabledProperty |
Default value : new DependencyProperty(
'IsEnabled',
true,
FrameworkElement.IsEnabledCallback
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:160
|
IsEnabledProperty dependency property |
Private isFirstTimeLoad |
Default value : true
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:824
|
Flag used to check if it is the first time loading a model or not. |
Static LanguageProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'Language',
null,
null
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:173
|
LanguageProperty dependency property |
Public LayoutUpdated |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:593
|
Public Loaded |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:589
|
Public Margin |
Type : ThicknessModel
|
Decorators :
@Dependency(FrameworkElement.MarginProperty)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:644
|
Gets or sets the margin |
Static MarginProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'Margin',
null,
null
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:186
|
MarginProperty dependency property |
Public maxHeight |
Type : number
|
Decorators :
@Dependency(FrameworkElement.MaxHeightProperty)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:708
|
Gets or sets max height |
Static MaxHeightProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'MaxHeight',
0,
null
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:199
|
MaxHeightProperty dependency property |
Public maxWidth |
Type : number
|
Decorators :
@Dependency(FrameworkElement.MaxWidthProperty)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:678
|
Gets or sets the max width |
Static MaxWidthProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'MaxWidth',
0,
null
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:212
|
MaxWidthProperty dependency property |
Public minHeight |
Type : number
|
Decorators :
@Dependency(FrameworkElement.MinHeightProperty)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:698
|
Gets or sets the min height |
Static MinHeightProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'MinHeight',
0,
null
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:225
|
MinHeightProperty dependency property |
Public minWidth |
Type : number
|
Decorators :
@Dependency(FrameworkElement.MinWidthProperty)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:688
|
Gets or sets the min width |
Static MinWidthProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'MinWidth',
0,
null
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:238
|
MinWidthProperty dependency property |
Public name |
Type : string
|
Default value : ''
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:617
|
Static NameProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'Name',
null,
null
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:251
|
NameProperty dependency property |
Private parent |
Type : FrameworkElement
|
Default value : null
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:736
|
parentChangeHandler |
Type : function
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:746
|
Public resources |
Type : ResourceDictionary
|
Default value : new ResourceDictionary()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:717
|
Resources property |
Public SizeChanged |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:614
|
Private sizeChangedPendingTimeout |
Type : any
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:321
|
Public Style |
Type : RuntimeStyleInfo
|
Decorators :
@Dependency(FrameworkElement.StyleProperty)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:800
|
Gets or sets the style |
Static StyleProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'Style',
null,
FrameworkElement.StyleCallback
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:264
|
StyleProperty dependency property |
Public Tag |
Type : any
|
Decorators :
@Dependency(FrameworkElement.TagProperty)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:902
|
Gets or sets the tag |
Static TagProperty |
Default value : new DependencyProperty('Tag', null, null)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:277
|
TagProperty dependency property |
Public tooltip |
Type : ToolTipModel
|
Default value : null
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:734
|
Instance related to a tooltip component for this control |
Public ToolTipSet |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:611
|
ToolTipSet event |
Public Unloaded |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:591
|
Public VerticalAlignment |
Type : VerticalAlignment
|
Decorators :
@Dependency(FrameworkElement.VerticalAlignmentProperty)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:773
|
Gets or sets the vertical alignment |
Static VerticalAlignmentProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'VerticalAlignment',
VerticalAlignment.Stretch,
null
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:286
|
VerticalAlignmentProperty dependency property |
Public VerticalContentAlignment |
Type : VerticalAlignment
|
Decorators :
@Dependency(FrameworkElement.VerticalContentAlignmentProperty)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:782
|
Gets or sets the vertical content alignment. |
Static VerticalContentAlignmentProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'VerticalContentAlignment',
VerticalAlignment.Center,
null
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:299
|
VerticalContentAlignment dependency property. |
Public Width |
Type : number
|
Decorators :
@Dependency(FrameworkElement.WidthProperty)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:791
|
Gets or sets the width |
Static WidthProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'Width',
Number.NaN,
FrameworkElement.WidthChangeCallback
)
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:314
|
WidthProperty dependency property |
Private __internalVisibility |
Type : boolean
|
Default value : true
|
Inherited from
UIElement
|
Defined in
UIElement:289
|
Public AllowDrop |
Type : boolean
|
Decorators :
@Dependency(UIElement.AllowDropProperty)
|
Inherited from
UIElement
|
Defined in
UIElement:279
|
Gets or sets the allow drop value |
Static AllowDropProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'AllowDrop',
false,
null
)
|
Inherited from
UIElement
|
Defined in
UIElement:52
|
AllowDropProperty dependency property |
Public CacheMode |
Type : any
|
Decorators :
@Dependency(UIElement.CacheModeProperty)
|
Inherited from
UIElement
|
Defined in
UIElement:287
|
Gets or sets the cache mode value |
Static CacheModeProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'CacheMode',
null,
null
)
|
Inherited from
UIElement
|
Defined in
UIElement:65
|
CacheModeProperty dependency property |
capturedMoveHandler |
Type : function
|
Inherited from
UIElement
|
Defined in
UIElement:339
|
capturedUpHandler |
Type : function
|
Inherited from
UIElement
|
Defined in
UIElement:338
|
Static ClipProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'Clip',
null,
null
)
|
Inherited from
UIElement
|
Defined in
UIElement:78
|
ClipProperty dependency property |
Private customCSSClasses |
Type : string
|
Default value : ''
|
Inherited from
UIElement
|
Defined in
UIElement:271
|
Custom property to save CSS classes that need to be applied to the control |
Static EffectProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'Effect',
null,
null
)
|
Inherited from
UIElement
|
Defined in
UIElement:91
|
EffectProperty dependency property |
Public GotFocus |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent<(s: any, e: any) => void>()
|
Inherited from
UIElement
|
Defined in
UIElement:229
|
Private hasAutoColumnGridParent |
Type : boolean
|
Default value : false
|
Inherited from
UIElement
|
Defined in
UIElement:262
|
Custom property to know if control is inside grid with auto columns |
Public IsHitTestVisible |
Type : boolean
|
Default value : false
|
Decorators :
@Dependency(UIElement.IsHitTestVisibleProperty)
|
Inherited from
UIElement
|
Defined in
UIElement:322
|
IsHitTestVisible property |
Static IsHitTestVisibleProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'IsHitTestVisible',
null,
null
)
|
Inherited from
UIElement
|
Defined in
UIElement:104
|
IsHitTestVisibleProperty dependency property |
Public KeyDown |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent<(s: any, e: any) => void>()
|
Inherited from
UIElement
|
Defined in
UIElement:225
|
Public KeyUp |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent<(s: any, e: any) => void>()
|
Inherited from
UIElement
|
Defined in
UIElement:227
|
Public LostFocus |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent<(sender: any, e: any) => void>()
|
Inherited from
UIElement
|
Defined in
UIElement:231
|
Public MouseEnter |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent<(s: any, e: any) => MouseEventArgs>()
|
Inherited from
UIElement
|
Defined in
UIElement:213
|
Public MouseLeave |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent<(s: any, e: any) => MouseEventArgs>()
|
Inherited from
UIElement
|
Defined in
UIElement:215
|
Public MouseLeftButtonDown |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent<(s: any, e: MouseEventArgs) => void>()
|
Inherited from
UIElement
|
Defined in
UIElement:207
|
Public MouseLeftButtonUp |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent<(s: any, e: MouseEventArgs) => void>()
|
Inherited from
UIElement
|
Defined in
UIElement:217
|
Public MouseMove |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent<(s: any, e: MouseEventArgs) => void>()
|
Inherited from
UIElement
|
Defined in
UIElement:223
|
Public MouseRightButtonDown |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent<(s: any, e: MouseEventArgs) => void>()
|
Inherited from
UIElement
|
Defined in
UIElement:210
|
Public MouseRightButtonUp |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent<(s: any, e: MouseEventArgs) => void>()
|
Inherited from
UIElement
|
Defined in
UIElement:220
|
Public Name |
Type : string
|
Default value : ''
|
Inherited from
UIElement
|
Defined in
UIElement:242
|
Name property |
Public OnModelChange |
Type : function
|
Inherited from
UIElement
|
Defined in
UIElement:42
|
On model change handler reference |
Public Opacity |
Type : number
|
Decorators :
@Dependency(UIElement.OpacityProperty)
|
Inherited from
UIElement
|
Defined in
UIElement:253
|
Gets or sets the opacity value |
Static OpacityMaskProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'OpacityMask',
null,
null
)
|
Inherited from
UIElement
|
Defined in
UIElement:117
|
OpacityMaskProperty dependency property |
Static OpacityProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'Opacity',
1,
null
)
|
Inherited from
UIElement
|
Defined in
UIElement:130
|
OpacityProperty dependency property |
Static ProjectionProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'Projection',
null,
null
)
|
Inherited from
UIElement
|
Defined in
UIElement:143
|
ProjectionProperty dependency property |
Public RenderSize |
Type : Size
|
Decorators :
@Dependency(UIElement.RenderSizeProperty)
|
Inherited from
UIElement
|
Defined in
UIElement:297
|
Gets the final render size of a UIElement. |
Static RenderSizeProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'RenderSize',
new Size(0, 0),
null
)
|
Inherited from
UIElement
|
Defined in
UIElement:156
|
RenderSizeProperty dependency property |
Public RenderTransform |
Type : any
|
Decorators :
@Dependency(UIElement.RenderTransformProperty)
|
Inherited from
UIElement
|
Defined in
UIElement:314
|
Gets or sets the render transform |
Public RenderTransformOrigin |
Type : any
|
Decorators :
@Dependency(UIElement.RenderTransformOriginProperty)
|
Inherited from
UIElement
|
Defined in
UIElement:305
|
Gets or sets the render transform origin |
Static RenderTransformOriginProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty('RenderTransformOrigin', null, null)
|
Inherited from
UIElement
|
Defined in
UIElement:169
|
RenderTransformOriginProperty dependency property |
Static RenderTransformProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'RenderTransform',
null,
null
)
|
Inherited from
UIElement
|
Defined in
UIElement:179
|
RenderTransformProperty dependency property |
Public Spin |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent<(sender: any, e: any) => void>()
|
Inherited from
UIElement
|
Defined in
UIElement:233
|
Static UseLayoutRoundingProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'UseLayoutRounding',
true,
null
)
|
Inherited from
UIElement
|
Defined in
UIElement:192
|
UseLayoutRoundingProperty dependency property |
Static VisibilityProperty |
Default value : new DependencyProperty('Visibility', true, null)
|
Inherited from
UIElement
|
Defined in
UIElement:205
|
VisibilityProperty dependency property |
Protected bindingExpressions |
Default value : new SimpleDictionary<
string,
BindingExpression
>()
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:65
|
Public BindingValidationError |
Default value : new SubscriptionEvent<
(sender: any, e: BindingValidationErrorEventArgs) => void
>()
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:78
|
Event for validation errors |
Public change |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent()
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:61
|
Infrastructure event for notifying event changes |
Public Dispatcher |
Type : Dispatcher
|
Default value : Dispatcher.GetDispatcher()
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:55
|
isEnableSetPropertiesRegistry |
Type : boolean
|
Default value : true
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:125
|
Flag which indicates if the dependency property set mechanism is enable |
Public IsInitializingBindings |
Type : boolean
|
Default value : false
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:178
|
Property to determine if bindings are being initialized |
previousValidationMessage |
Type : string
|
Default value : ''
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:70
|
Protected properties |
Type : object
|
Default value : {}
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:64
|
Private setPropertiesRegistry |
Type : Map<string | boolean>
|
Default value : new Map()
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:116
|
Registry with dependencies properties which has been set |
validationerr |
Default value : false
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:69
|
validationMessagesStack |
Type : Array<>
|
Default value : []
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:106
|
Keeps a queue of validation messages registered on the current Dependency Object |
Public addColumn | ||||||
addColumn(column: any)
|
||||||
Parameters :
Returns :
void
|
Public CellClickHandler | ||||||
CellClickHandler($event: any)
|
||||||
Cell click handler
Parameters :
Returns :
void
|
Public getColumns |
getColumns()
|
Returns :
ObservableCollection<DataGridColumnModel>
|
Static getItemsSourceArray | ||||||
getItemsSourceArray(value: any)
|
||||||
Extracts an array from the given object. if the value is an array itself then it is returned otherway its {internalArray} property is called (if existing)
Parameters :
Returns :
any[]
{any[]} |
Private Static itemsSourceChanged | ||||||||||||
itemsSourceChanged(sender: DependencyObject, args: DependencyPropertyChangedEventArgs)
|
||||||||||||
Handles the DataGridModel.ItemsSource changed event.
Parameters :
Returns :
void
|
Public KeyDownHandler | ||||||
KeyDownHandler(event: any)
|
||||||
Key down handler
Parameters :
Returns :
void
|
Private Static OnRowStyleChangedCallback | ||||||||||||
OnRowStyleChangedCallback(sender: DependencyObject, args: DependencyPropertyChangedEventArgs)
|
||||||||||||
Handles the DataGridModel.RowStyle changed event.
Parameters :
Returns :
void
|
Public ScrollIntoView | |||||||||
ScrollIntoView(item: any, column: DataGridColumnModel)
|
|||||||||
Parameters :
Returns :
void
|
Public setSelectableSettings |
setSelectableSettings()
|
Returns :
void
|
ApplyTemplate |
ApplyTemplate()
|
Inherited from
Control
|
Defined in
Control:433
|
Returns :
any
|
Public Focus |
Focus()
|
Inherited from
Control
|
Defined in
Control:403
|
Focus control
Returns :
void
|
Public GetTemplateChild | ||||||
GetTemplateChild(name: string)
|
||||||
Inherited from
Control
|
||||||
Defined in
Control:386
|
||||||
Gets a control model defined inside the control template model (if assigned)
Parameters :
Returns :
DependencyObject
{DependencyObject} |
Protected loadModels |
loadModels()
|
Inherited from
Control
|
Defined in
Control:526
|
Loads the model for the child elements defined in component.
Returns :
void
|
OnGotFocus | ||||||
OnGotFocus(args: RoutedEventArgs)
|
||||||
Inherited from
Control
|
||||||
Defined in
Control:450
|
||||||
OnGotFocus handler
Parameters :
Returns :
void
|
OnKeyDown | ||||||
OnKeyDown(args: KeyEventArgs)
|
||||||
Inherited from
Control
|
||||||
Defined in
Control:442
|
||||||
Parameters :
Returns :
void
|
OnKeyUp | |||||||||
OnKeyUp(sender: any, args?: KeyEventArgs)
|
|||||||||
Inherited from
Control
|
|||||||||
Defined in
Control:443
|
|||||||||
Parameters :
Returns :
void
|
OnLostFocus | ||||||
OnLostFocus(args: RoutedEventArgs)
|
||||||
Inherited from
Control
|
||||||
Defined in
Control:459
|
||||||
OnLostFocus handler
Parameters :
Returns :
void
|
OnMouseEnter | |||||||||
OnMouseEnter(a0?, args?: any)
|
|||||||||
Inherited from
Control
|
|||||||||
Defined in
Control:437
|
|||||||||
Parameters :
Returns :
any
|
OnMouseLeave | ||||
OnMouseLeave(a0?)
|
||||
Inherited from
Control
|
||||
Defined in
Control:438
|
||||
Parameters :
Returns :
any
|
OnMouseLeftButtonDown | ||||
OnMouseLeftButtonDown(a0?)
|
||||
Inherited from
Control
|
||||
Defined in
Control:439
|
||||
Parameters :
Returns :
any
|
OnMouseLeftButtonUp | ||||
OnMouseLeftButtonUp(a0?)
|
||||
Inherited from
Control
|
||||
Defined in
Control:441
|
||||
Parameters :
Returns :
any
|
OnMouseMove | ||||
OnMouseMove(a0?)
|
||||
Inherited from
Control
|
||||
Defined in
Control:440
|
||||
Parameters :
Returns :
any
|
Public OnTemplateChanged | |||||||||
OnTemplateChanged(sender: any, args: DependencyPropertyChangedEventArgs)
|
|||||||||
Inherited from
Control
|
|||||||||
Defined in
Control:481
|
|||||||||
Operation to apply when changing control template
Parameters :
Returns :
void
|
OnTextChanged |
OnTextChanged(sender: any, args?: any)
|
Inherited from
Control
|
Defined in
Control:471
|
OnTextChanged handler
Returns :
void
|
Static TemplateCallback | |||||||||
TemplateCallback(sender: DependencyObject, args: DependencyPropertyChangedEventArgs)
|
|||||||||
Inherited from
Control
|
|||||||||
Defined in
Control:510
|
|||||||||
Callback for the template changed property
Parameters :
Returns :
void
|
Protected tryApplyStyleFromParentOrDefault |
tryApplyStyleFromParentOrDefault()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:535
|
Tries to apply style from parent or from default
Returns :
void
|
Protected tryGetDefaultThemeStyle |
tryGetDefaultThemeStyle()
|
Inherited from
Control
|
Defined in
Control:553
|
Tries to resolve style from default theme
Returns :
any
|
Public AfterContentChecked |
AfterContentChecked()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:496
|
Angular Lifecycle Hooks
Returns :
void
|
Public AfterContentInit |
AfterContentInit()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:469
|
Angular Lifecycle Hook
Returns :
void
|
Public AfterViewChecked |
AfterViewChecked()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:505
|
Angular Lifecycle Hooks
Returns :
void
|
Public AfterViewInit |
AfterViewInit()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:526
|
Angular Lifecycle Hook. According to SL Documentation LayoutUpdated is the last object lifetime event to occur in the sequence before a control is ready for interaction. A setTimeout is set to ensure that it is triggered after everything is resolved.
Returns :
void
|
Public CleanupBindingSubscriptions |
CleanupBindingSubscriptions()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:971
|
Clean up any subscription created for user bindings
Returns :
void
|
Static DataContextCallback | |||||||||
DataContextCallback(sender: DependencyObject, args: DependencyPropertyChangedEventArgs)
|
|||||||||
Inherited from
FrameworkElement
|
|||||||||
Defined in
FrameworkElement:420
|
|||||||||
DataContext Callback Executed when the Width changes
Parameters :
Returns :
void
|
Public DoCheck |
DoCheck()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:487
|
Angular Lifecycle Hooks
Returns :
void
|
Public FindName | ||||||
FindName(name: string)
|
||||||
Inherited from
FrameworkElement
|
||||||
Defined in
FrameworkElement:930
|
||||||
Find an object by its
Parameters :
Returns :
unknown
{unknown} |
Public fireLoaded |
fireLoaded()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:1073
|
Fire
Returns :
void
|
Public getApplicationResource | ||||||||||||
getApplicationResource(key: string, ...properties: string[])
|
||||||||||||
Inherited from
FrameworkElement
|
||||||||||||
Defined in
FrameworkElement:1027
|
||||||||||||
Retrieves a resource with the given key or with the given property path Paths are just a collection of properties to be identified. Also static fields could be accessed using object instances. @example let obj = tmp.getApplicationResource('reskey', 'P1', 'P2')
Parameters :
Example :
Returns :
any
{any} the resulting data element |
GetBindingExpression | ||||||
GetBindingExpression(dependencyProperty: DependencyProperty)
|
||||||
Inherited from
FrameworkElement
|
||||||
Defined in
FrameworkElement:919
|
||||||
Parameters :
Returns :
any
|
Public getResourceByKey | ||||||
getResourceByKey(key: string)
|
||||||
Inherited from
FrameworkElement
|
||||||
Defined in
FrameworkElement:1058
|
||||||
Gets the specific resource by the given key
Parameters :
Returns :
unknown
{unknown} |
Static HeightChangeCallback | |||||||||
HeightChangeCallback(sender: DependencyObject, args: DependencyPropertyChangedEventArgs)
|
|||||||||
Inherited from
FrameworkElement
|
|||||||||
Defined in
FrameworkElement:377
|
|||||||||
HeightChange Callback Executed when the Height changes
Parameters :
Returns :
void
|
Protected initProperties |
initProperties()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:1113
|
Initialize the child elements properties of the component in code behind.
Returns :
void
|
Private innerGetChild | ||||||
innerGetChild(idx: number)
|
||||||
Inherited from
FrameworkElement
|
||||||
Defined in
FrameworkElement:1153
|
||||||
Gets the child number
Parameters :
Returns :
DependencyObject
{DependencyObject} |
Private innerGetChildrenCount |
innerGetChildrenCount()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:1165
|
Gets the number of children on this
Returns :
number
{number} |
Private innerGetChildrenParent | ||||||
innerGetChildrenParent(prop: string)
|
||||||
Inherited from
FrameworkElement
|
||||||
Defined in
FrameworkElement:1178
|
||||||
Gets the parent from which children should be taken from.
Parameters :
Returns :
FrameworkElement
{FrameworkElement} |
Static IsEnabledCallback | |||||||||
IsEnabledCallback(sender: DependencyObject, args: DependencyPropertyChangedEventArgs)
|
|||||||||
Inherited from
FrameworkElement
|
|||||||||
Defined in
FrameworkElement:438
|
|||||||||
IsEnabled dependency property callback
Parameters :
Returns :
void
|
MeasureOverride | ||||||
MeasureOverride(availableSize: Size)
|
||||||
Inherited from
FrameworkElement
|
||||||
Defined in
FrameworkElement:582
|
||||||
Measure override method NOTE: We are not supporting this functionality in angular, this implementation is meant only to avoid runtime exceptions, but any code that relies on MeasureOverride should be review and analyze for manual changes
Parameters :
Returns :
Size
{Size} |
Public OnApplyTemplate |
OnApplyTemplate()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:963
|
This method is involved in a
Returns :
void
|
Public OnChanges |
OnChanges()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:478
|
Angular Lifecycle Hooks
Returns :
void
|
Protected OnDataContextCallback | ||||||
OnDataContextCallback(args: DependencyPropertyChangedEventArgs)
|
||||||
Inherited from
FrameworkElement
|
||||||
Defined in
FrameworkElement:1103
|
||||||
Callback action for DataContext property changes
Parameters :
Returns :
void
|
Public OnDestroy |
OnDestroy()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:514
|
Returns :
void
|
Public OnInit |
OnInit()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:460
|
Angular Lifecycle Hook
Returns :
void
|
Public OnIsEnabledChanged | ||||||
OnIsEnabledChanged(args: DependencyPropertyChangedEventArgs)
|
||||||
Inherited from
FrameworkElement
|
||||||
Defined in
FrameworkElement:453
|
||||||
On IsEnabled changed handler
Parameters :
Returns :
void
|
OpenCtxMenu | ||||||
OpenCtxMenu(menu: ContextMenuManager)
|
||||||
Inherited from
FrameworkElement
|
||||||
Defined in
FrameworkElement:555
|
||||||
Opens an instance of the XamContextMenu This is declared here because it can be set as an attached property and the component should know when it has a XamContextMenu setted to be displayed.
Parameters :
Returns :
void
|
Public RaiseSizeChangedEvent |
RaiseSizeChangedEvent()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:1086
|
Raise the
Returns :
void
|
Public RecreateInvalidBindings |
RecreateInvalidBindings()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:992
|
Calling CleanupBindingSubscriptions will set bindingExpression into an invalid state, the expressions and bindings still might persist (if the model is not destroyed), yet the subscriptions were cleaned, if this model is re-bind to a new angular component previous bindings and bindingExpressions will required to be recreated to work properly. This happens when the angular component is destroyed but the model still persists, like when an *ngIf is used to hide an item in the DOM, yet the model instance still persist until it gets visible again, the binding and bindingExpression will be the same but their subscriptions are gone.
Returns :
void
|
Public refreshBindings |
refreshBindings()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:955
|
Refresh element binding values
Returns :
void
|
Private scheduleFiringSizeChanged |
scheduleFiringSizeChanged()
|
Inherited from
FrameworkElement
|
Defined in
FrameworkElement:1191
|
Schedules executing the SizeChanged event
Returns :
void
|
Private setDataContextFromAnchestor | ||||||
setDataContextFromAnchestor(parent: any)
|
||||||
Inherited from
FrameworkElement
|
||||||
Defined in
FrameworkElement:1138
|
||||||
Sets the datacontext from anchestor when was not directly set to property
Parameters :
Returns :
void
|
SetTooltipToModel | ||||||
SetTooltipToModel(tooltip: ToolTipModel)
|
||||||
Inherited from
FrameworkElement
|
||||||
Defined in
FrameworkElement:567
|
||||||
Set tooltip component
Parameters :
Returns :
void
|
Static StyleCallback | |||||||||
StyleCallback(sender: DependencyObject, args: DependencyPropertyChangedEventArgs)
|
|||||||||
Inherited from
FrameworkElement
|
|||||||||
Defined in
FrameworkElement:332
|
|||||||||
StyleCallback
Parameters :
Returns :
void
|
UpdateLayout |
UpdateLayout()
|
Inherited from
UIElement
|
Defined in
UIElement:541
|
Updates the layout
Returns :
void
|
Static WidthChangeCallback | |||||||||
WidthChangeCallback(sender: DependencyObject, args: DependencyPropertyChangedEventArgs)
|
|||||||||
Inherited from
FrameworkElement
|
|||||||||
Defined in
FrameworkElement:397
|
|||||||||
WidthChange Callback Executed when the Width changes
Parameters :
Returns :
void
|
Public Arrange | ||||||
Arrange(obj: any)
|
||||||
Inherited from
UIElement
|
||||||
Defined in
UIElement:393
|
||||||
Arrange method
Parameters :
Returns :
void
|
Public captureMouse |
captureMouse()
|
Inherited from
UIElement
|
Defined in
UIElement:368
|
Captures the mouse events
Returns :
boolean
|
Public Measure | ||||||
Measure(obj: any)
|
||||||
Inherited from
UIElement
|
||||||
Defined in
UIElement:404
|
||||||
Measure method
Parameters :
Returns :
any
|
Public releaseMouseCapture |
releaseMouseCapture()
|
Inherited from
UIElement
|
Defined in
UIElement:379
|
Returns :
void
|
Protected SyncModelWithComponent | ||||||||
SyncModelWithComponent(params: any)
|
||||||||
Inherited from
UIElement
|
||||||||
Defined in
UIElement:409
|
||||||||
Parameters :
Returns :
void
|
Public TransformToVisual | ||||||
TransformToVisual(obj: UIElement)
|
||||||
Inherited from
UIElement
|
||||||
Defined in
UIElement:354
|
||||||
Transforms to visual
Parameters :
Returns :
any
|
Public withName | ||||||
withName(name: string)
|
||||||
Inherited from
UIElement
|
||||||
Defined in
UIElement:341
|
||||||
Parameters :
Returns :
UIElement
|
Private addRelatedSubscriptionIfRequired | ||||||||||||
addRelatedSubscriptionIfRequired(event: SubscriptionEvent<any>, theHandler: any, bindingExpression: BindingExpression)
|
||||||||||||
Inherited from
DependencyObject
|
||||||||||||
Defined in
DependencyObject:502
|
||||||||||||
Parameters :
Returns :
void
|
Private addSubscriptionForTwoWayBindings | ||||||||||||
addSubscriptionForTwoWayBindings(dependencyProperty: DependencyProperty, binding: Binding, bindingExpression: BindingExpression)
|
||||||||||||
Inherited from
DependencyObject
|
||||||||||||
Defined in
DependencyObject:383
|
||||||||||||
Parameters :
Returns :
void
|
addsValidationMessage | |||||||||
addsValidationMessage(propKey: Binding | string, message: string)
|
|||||||||
Inherited from
DependencyObject
|
|||||||||
Defined in
DependencyObject:135
|
|||||||||
Adds a new validation message associated to a binding or a property name
Parameters :
Returns :
void
|
Private beginSubscribeToMultiPropertyPathChanges | |||||||||||||||
beginSubscribeToMultiPropertyPathChanges(context: any, binding: Binding, dependencyProperty: DependencyProperty, bindingExpression: BindingExpression)
|
|||||||||||||||
Inherited from
DependencyObject
|
|||||||||||||||
Defined in
DependencyObject:542
|
|||||||||||||||
Parameters :
Returns :
void
|
Private checkForSubscriptoinToDataErrorInfo | |||||||||||||||
checkForSubscriptoinToDataErrorInfo(currentContext: any, binding: Binding, propertyToSubscribe: string, bindingExpression: BindingExpression)
|
|||||||||||||||
Inherited from
DependencyObject
|
|||||||||||||||
Defined in
DependencyObject:716
|
|||||||||||||||
Parameters :
Returns :
void
|
Public clearValue | ||||||
clearValue(property: DependencyProperty)
|
||||||
Inherited from
DependencyObject
|
||||||
Defined in
DependencyObject:212
|
||||||
Clears the dependency property value
Parameters :
Returns :
void
|
Equals | ||||||
Equals(obj: any)
|
||||||
Inherited from
DependencyObject
|
||||||
Defined in
DependencyObject:201
|
||||||
Compares this dependency object agains another object.
Parameters :
Returns :
boolean
{boolean} |
GetChild | ||||||
GetChild(idx: number)
|
||||||
Inherited from
DependencyObject
|
||||||
Defined in
DependencyObject:928
|
||||||
Gets the child element at the index position
Parameters :
Returns :
DependencyObject
{DependencyObject} |
GetChildrenCount |
GetChildrenCount()
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:916
|
Method o know the amount of children the parent has
Returns :
number
{number} |
GetHashCode |
GetHashCode()
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:187
|
Gets a hash code for this dependency object.
Returns :
number
{number} |
Public getValue | ||||||
getValue(property: DependencyProperty)
|
||||||
Inherited from
DependencyObject
|
||||||
Defined in
DependencyObject:226
|
||||||
Gets the value of a dependency property
Parameters :
Returns :
any
|
Private handleErrorsOnContext | |||||||||
handleErrorsOnContext(errorCtxt: INotifyDataErrorInfo, args: DataErrorsChangedEventArgs)
|
|||||||||
Inherited from
DependencyObject
|
|||||||||
Defined in
DependencyObject:777
|
|||||||||
Check and register possible errors in an error context
Parameters :
Returns :
void
|
Public IsPropertySet | ||||||
IsPropertySet(propertyName: string)
|
||||||
Inherited from
DependencyObject
|
||||||
Defined in
DependencyObject:376
|
||||||
Indicates if the property has been already set.
Parameters :
Returns :
any
|
Private performDataErrorValidationIfRequired |
performDataErrorValidationIfRequired(binding: Binding, theBindingContext: any)
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:481
|
Performs validation on model if the model implementes IDataErrorINfo
Returns :
void
|
Private performRemoveValidationIfInValidationError | ||||||
performRemoveValidationIfInValidationError(binding: Binding)
|
||||||
Inherited from
DependencyObject
|
||||||
Defined in
DependencyObject:461
|
||||||
Performs the remove validation if the InValidationError is true
Parameters :
Returns :
void
|
Public performTargetObjectBindingUpdate | |||||||||
performTargetObjectBindingUpdate(dependencyProperty: DependencyProperty, binding: Binding)
|
|||||||||
Inherited from
DependencyObject
|
|||||||||
Defined in
DependencyObject:429
|
|||||||||
Updates the target object value associated to the binding.
Parameters :
Returns :
void
|
Private preprocessValue | |||||||||
preprocessValue(property: DependencyProperty, value: any)
|
|||||||||
Inherited from
DependencyObject
|
|||||||||
Defined in
DependencyObject:889
|
|||||||||
Preprocess value to be set to dependency property
Parameters :
Returns :
any
|
Private recreateSubscriptionsForMultiPropertyBindingPath | ||||||||||||||||||||||||
recreateSubscriptionsForMultiPropertyBindingPath(currentContext: any, outerContext: any, properties: string[], propertyIndex: number, dependencyProperty: DependencyProperty, bindingExpression: BindingExpression, subscriptionsForCurrentBindingPath: Array<>)
|
||||||||||||||||||||||||
Inherited from
DependencyObject
|
||||||||||||||||||||||||
Defined in
DependencyObject:682
|
||||||||||||||||||||||||
Parameters :
Returns :
void
|
Private registerSetPropertyIfRequired | ||||||
registerSetPropertyIfRequired(name: string)
|
||||||
Inherited from
DependencyObject
|
||||||
Defined in
DependencyObject:903
|
||||||
Register set property if required
Parameters :
Returns :
void
|
Private removeSubscriptionsForMultiPropertyBindingPath | |||||||||
removeSubscriptionsForMultiPropertyBindingPath(subscriptionsForCurrentBindingPath: [], propertyIndex: number)
|
|||||||||
Inherited from
DependencyObject
|
|||||||||
Defined in
DependencyObject:663
|
|||||||||
Parameters :
Returns :
void
|
removeValidationMessage | ||||||
removeValidationMessage(propKey: Binding | string)
|
||||||
Inherited from
DependencyObject
|
||||||
Defined in
DependencyObject:158
|
||||||
Removes a validation message associated to a binding or a property name
Parameters :
Returns :
void
|
SetBinding | ||||||||||||
SetBinding(dependencyProperty: DependencyProperty, binding: Binding)
|
||||||||||||
Inherited from
DependencyObject
|
||||||||||||
Defined in
DependencyObject:317
|
||||||||||||
Sets a binding to the specified property at runtime
Parameters :
Returns :
void
|
Public setValue | |||||||||
setValue(property: DependencyProperty, value: any)
|
|||||||||
Inherited from
DependencyObject
|
|||||||||
Defined in
DependencyObject:249
|
|||||||||
Sets the value for a dependency property
Parameters :
Returns :
void
|
Public setValueForScopedRegion | ||||||||||||
setValueForScopedRegion(property: DependencyProperty, value: any, scopedRegionManager: IRegionManager)
|
||||||||||||
Inherited from
DependencyObject
|
||||||||||||
Defined in
DependencyObject:282
|
||||||||||||
Sets the value for a dependency property. This is a workaround to support Scoped Region Managers. A research is required to find out the way to get the application region Manager when scoped region managers are used (when creating the DelayedRegionBehavior, the correct scoped region manager must be passed as an argument).
Parameters :
Returns :
void
|
Protected shouldPreventDefaultSourceUpdate | |||||||||
shouldPreventDefaultSourceUpdate(dependencyProperty: DependencyProperty, binding: BindingExpression)
|
|||||||||
Inherited from
DependencyObject
|
|||||||||
Defined in
DependencyObject:870
|
|||||||||
Parameters :
Returns :
boolean
|
Private subscribeToBindingPathChanges | |||||||||||||||
subscribeToBindingPathChanges(context: any, binding: Binding, dependencyProperty: DependencyProperty, bindingExpression: BindingExpression)
|
|||||||||||||||
Inherited from
DependencyObject
|
|||||||||||||||
Defined in
DependencyObject:512
|
|||||||||||||||
Parameters :
Returns :
void
|
Private subscribeToErrorsChangedInModel | ||||||||||||
subscribeToErrorsChangedInModel(errorCtxt: INotifyDataErrorInfo, propertyToSubscribe: string, bindingExpression: BindingExpression)
|
||||||||||||
Inherited from
DependencyObject
|
||||||||||||
Defined in
DependencyObject:748
|
||||||||||||
Parameters :
Returns :
void
|
Private subscribeToPropertyChanges | ||||||||||||||||||||||||
subscribeToPropertyChanges(currentContext: any, outerContext: any, properties: string[], propertyIndex: number, dependencyProperty: DependencyProperty, bindingExpression: BindingExpression, subscriptionsForCurrentBindingPath: Array<>)
|
||||||||||||||||||||||||
Inherited from
DependencyObject
|
||||||||||||||||||||||||
Defined in
DependencyObject:586
|
||||||||||||||||||||||||
Parameters :
Returns :
void
|
Private updateSourceOfBinding | ||||||||||||
updateSourceOfBinding(binding: Binding, outerContext: any, dependencyProperty: DependencyProperty)
|
||||||||||||
Inherited from
DependencyObject
|
||||||||||||
Defined in
DependencyObject:811
|
||||||||||||
Updates the source of a binding
Parameters :
Returns :
void
|
import {
IList,
iuFirstOrDefault,
ObservableCollection,
} from '../../baseframework/collections';
import { Control } from '../../basecomponentmodel/Control';
import { SubscriptionEvent } from '../../utils/SubscriptionEvent';
import { DataGridColumnModel } from './DataGridColumnModel';
import { DataGridLengthModel } from './DataGridLengthModel';
import { AngularComponentId } from '../../helpers';
import { DependencyProperty } from '../../basecomponentmodel/DependencyProperty';
import { Dependency } from '../../basecomponentmodel/Dependency';
import { DependencyObject } from '../../basecomponentmodel/DependencyObject';
import { DependencyPropertyChangedEventArgs } from '../../basecomponentmodel/DependencyPropertyChangedEventArgs';
import {
RuntimeStyleInfo,
Setter,
} from '../../basecomponentmodel/RuntimeStyleInfo';
import { DataGridHeadersVisibility } from '../enums/DataGridHeadersVisibility';
/**
* Model class to represent DataGrid component
*
* @export
* @class DataGridModel
* @extends {Control}
* @wType System.Windows.Controls.DataGrid
*/
export class DataGridModel extends Control {
/**
* AlternatingRowBackgroundProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static AlternatingRowBackgroundProperty: DependencyProperty =
new DependencyProperty('AlternatingRowBackground', null, null);
/**
* AreRowDetailsFrozenProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static AreRowDetailsFrozenProperty: DependencyProperty =
new DependencyProperty('AreRowDetailsFrozen', null, null);
/**
* AreRowGroupHeadersFrozenProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static AreRowGroupHeadersFrozenProperty: DependencyProperty =
new DependencyProperty('AreRowGroupHeadersFrozen', null, null);
/**
* AutoGenerateColumnsProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static AutoGenerateColumnsProperty: DependencyProperty =
new DependencyProperty('AutoGenerateColumns', true, null);
/**
* CanUserReorderColumnsProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static CanUserReorderColumnsProperty: DependencyProperty =
new DependencyProperty('CanUserReorderColumns', true, null);
/**
* CanUserResizeColumnsProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static CanUserResizeColumnsProperty: DependencyProperty =
new DependencyProperty('CanUserResizeColumns', true, null);
/**
* CanUserSortColumnsProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static CanUserSortColumnsProperty: DependencyProperty =
new DependencyProperty('CanUserSortColumns', true, null);
/**
* CellStyleProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static CellStyleProperty: DependencyProperty = new DependencyProperty(
'CellStyle',
null,
null
);
/**
* ClipboardCopyModeProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static ClipboardCopyModeProperty: DependencyProperty = new DependencyProperty(
'ClipboardCopyMode',
null,
null
);
/**
* ColumnHeaderHeightProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static ColumnHeaderHeightProperty: DependencyProperty =
new DependencyProperty('ColumnHeaderHeight', 0, null);
/**
* ColumnHeaderStyleProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static ColumnHeaderStyleProperty: DependencyProperty = new DependencyProperty(
'ColumnHeaderStyle',
null,
null
);
/**
* ColumnWidthProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static ColumnWidthProperty: DependencyProperty = new DependencyProperty(
'ColumnWidth',
null,
null
);
/**
* DragIndicatorStyleProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static DragIndicatorStyleProperty: DependencyProperty =
new DependencyProperty('DragIndicatorStyle', null, null);
/**
* DropLocationIndicatorStyleProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static DropLocationIndicatorStyleProperty: DependencyProperty =
new DependencyProperty('DropLocationIndicatorStyle', null, null);
/**
* FrozenColumnCountProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static FrozenColumnCountProperty: DependencyProperty = new DependencyProperty(
'FrozenColumnCount',
0,
null
);
/**
* GridLinesVisibilityProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static GridLinesVisibilityProperty: DependencyProperty =
new DependencyProperty('GridLinesVisibility', 'Horizontal', null);
/**
* HeadersVisibilityProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static HeadersVisibilityProperty: DependencyProperty = new DependencyProperty(
'HeadersVisibility',
DataGridHeadersVisibility.Column,
null
);
/**
* HorizontalGridLinesBrushProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static HorizontalGridLinesBrushProperty: DependencyProperty =
new DependencyProperty('HorizontalGridLinesBrush', null, null);
/**
* HorizontalScrollBarVisibilityProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static HorizontalScrollBarVisibilityProperty: DependencyProperty =
new DependencyProperty('HorizontalScrollBarVisibility', null, null);
/**
* IsReadOnlyProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static IsReadOnlyProperty: DependencyProperty = new DependencyProperty(
'IsReadOnly',
false,
null
);
/**
* IsValidProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static IsValidProperty: DependencyProperty = new DependencyProperty(
'IsValid',
false,
null
);
/**
* ItemsSourceProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static ItemsSourceProperty: DependencyProperty = new DependencyProperty(
'ItemsSource',
null,
DataGridModel.itemsSourceChanged
);
/**
* MaxColumnWidthProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static MaxColumnWidthProperty: DependencyProperty = new DependencyProperty(
'MaxColumnWidth',
0,
null
);
/**
* MinColumnWidthProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static MinColumnWidthProperty: DependencyProperty = new DependencyProperty(
'MinColumnWidth',
20,
null
);
/**
* RowBackgroundProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static RowBackgroundProperty: DependencyProperty = new DependencyProperty(
'RowBackground',
null,
null
);
/**
* RowDetailsTemplateProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static RowDetailsTemplateProperty: DependencyProperty =
new DependencyProperty('RowDetailsTemplate', null, null);
/**
* RowDetailsVisibilityModeProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static RowDetailsVisibilityModeProperty: DependencyProperty =
new DependencyProperty('RowDetailsVisibilityMode', null, null);
/**
* RowHeaderStyleProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static RowHeaderStyleProperty: DependencyProperty = new DependencyProperty(
'RowHeaderStyle',
null,
null
);
/**
* RowHeaderWidthProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static RowHeaderWidthProperty: DependencyProperty = new DependencyProperty(
'RowHeaderWidth',
0,
null
);
/**
* RowHeightProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static RowHeightProperty: DependencyProperty = new DependencyProperty(
'RowHeight',
0,
null
);
/**
* RowStyleProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static RowStyleProperty: DependencyProperty = new DependencyProperty(
'RowStyle',
null,
DataGridModel.OnRowStyleChangedCallback
);
/**
* SelectedIndexProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static SelectedIndexProperty: DependencyProperty = new DependencyProperty(
'SelectedIndex',
null,
null
);
/**
* SelectedItemProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static SelectedItemProperty: DependencyProperty = new DependencyProperty(
'SelectedItem',
null,
null
);
/**
* SelectionModeProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static SelectionModeProperty: DependencyProperty = new DependencyProperty(
'SelectionMode',
null,
null
);
/**
* VerticalGridLinesBrushProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static VerticalGridLinesBrushProperty: DependencyProperty =
new DependencyProperty('VerticalGridLiinesBrush', null, null);
/**
* VerticalScrollBarVisibilityProperty dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridModel
*/
static VerticalScrollBarVisibilityProperty: DependencyProperty =
new DependencyProperty('VerticalScrollBarVisibility', null, null);
public AngularComponentId = AngularComponentId.dataGrid;
/**
* Event to check when the current cell selected changed
*
* @memberof DataGridModel
*/
CurrentCellChanged: SubscriptionEvent<(sender: any, e: any) => void> =
new SubscriptionEvent<(sender: any, e: any) => void>();
/**
* Event to check when the ScrollIntoView method have been called
*
* @memberof DataGridModel
* @wIgnore
*/
ScrolledIntoView: SubscriptionEvent<(row: number, col: number) => void> =
new SubscriptionEvent<(row: number, col: number) => void>();
/**
* Occurs when the SelectedItem or SelectedItems property value changes.
*
* @memberof DataGridModel
*/
SelectionChanged: SubscriptionEvent<(sender: any, e: any) => void> =
new SubscriptionEvent<(sender: any, e: any) => void>();
/**
* The selected item
*
* @type {*}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.SelectedItemProperty)
SelectedItem: any;
/**
* The selected index
*
* @type {number}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.SelectedIndexProperty)
SelectedIndex: number;
/**
* Number of columns that cannot be scrolled horizontally
*
* @memberof DataGridModel
*/
@Dependency(DataGridModel.FrozenColumnCountProperty)
FrozenColumnCount: number;
/**
* Are row details frozen property
* Set this property to true disable section´s horizontal scroll.
* @type {boolean}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.AreRowDetailsFrozenProperty)
AreRowDetailsFrozen: boolean;
/**
* The selected column index
*
* @type {number}
* @memberof DataGridModel
* @wIgnore
*/
SelectedColumnIndex: number;
Columns = new ObservableCollection<DataGridColumnModel>();
CurrentColumn: DataGridColumnModel;
/**
* Indicates whether the user can adjust column widths using the mouse.
*
* @type {boolean}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.CanUserResizeColumnsProperty)
CanUserResizeColumns: boolean;
/**
* The column width
*
* @type {DataGridLengthModel}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.ColumnWidthProperty)
ColumnWidth: DataGridLengthModel;
/**
* ColumnHeaderStyle property
*
* @type {RuntimeStyleInfo}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.ColumnHeaderStyleProperty)
ColumnHeaderStyle: RuntimeStyleInfo;
/**
* The row details visibility mode
*
* @type {*}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.RowDetailsVisibilityModeProperty)
RowDetailsVisibilityMode: any;
/**
* Indicates whether the user can change the column display order by dragging column headers with the mouse.
*
* @type {boolean}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.CanUserReorderColumnsProperty)
CanUserReorderColumns: boolean;
/**
* Indicates whether the user can sort columns by clicking the column header.
*
* @type {boolean}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.CanUserSortColumnsProperty)
CanUserSortColumns: boolean;
/**
* The colum header height
*
* @type {number}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.ColumnHeaderHeightProperty)
ColumnHeaderHeight: number;
/**
* Is readonly datagrid
*
* @type {boolean}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.IsReadOnlyProperty)
IsReadOnly: boolean;
/**
* Is valid property
*
* @type {boolean}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.IsValidProperty)
IsValid: boolean;
/**
* The max column width
*
* @type {number}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.MaxColumnWidthProperty)
MaxColumnWidth: number;
/**
* The minimum column width
*
* @type {number}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.MinColumnWidthProperty)
MinColumnWidth: number;
/**
* The row header width
*
* @type {number}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.RowHeaderWidthProperty)
RowHeaderWidth: number;
/**
* The row height
*
* @type {number}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.RowHeightProperty)
RowHeight: number;
/**
* The row style
*
* @type {RuntimeStyleInfo}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.RowStyleProperty)
RowStyle: RuntimeStyleInfo;
/**
* The grid lines visibility
*
* @type {*}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.GridLinesVisibilityProperty)
GridLinesVisibility: any;
/**
* The selected items
*
* @type {IList<unknown>}
* @memberof DataGridModel
*/
SelectedItems: IList<unknown> = null;
/**
* The selection mode
*
* @type {*}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.SelectionModeProperty)
SelectionMode: any;
/**
* The autogenerate columns property
*
* @type {boolean}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.AutoGenerateColumnsProperty)
AutoGenerateColumns: boolean;
/**
* Gets or sets a value that indicates the visibility of row and column headers.
*
* @type {DataGridHeadersVisibility}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.HeadersVisibilityProperty)
HeadersVisibility: DataGridHeadersVisibility;
/**
* This settings enables the selection mode in the kendo grid
*/
selectableSettings: any;
/**
* The items source
*
* @type {*}
* @memberof DataGridModel
*/
@Dependency(DataGridModel.ItemsSourceProperty)
public ItemsSource: any;
/**
* The ItemsSource value as an array of values
*
* @type {any[]}
* @memberof DataGridModel
* @wIgnore
*/
public ItemsSourceArray: any[];
/**
* Subscription for the CollectionChanged event of the items source (if exists)
*
* @memberof DataGridModel
*/
public collectionChangedSubscription: () => void;
/**
* Creates an instance of DataGridModel.
* @memberof DataGridModel
*/
constructor() {
super();
// Add handler to set the parent grid for new columns
this.Columns.CollectionChanged.addHandler((sender, event) => {
if (event.NewItems?.count > 0) {
for (const newColumn of event.NewItems) {
if ('ParentGrid' in newColumn) {
newColumn.ParentGrid = this;
}
}
}
});
}
/**
* Handles the DataGridModel.ItemsSource changed event.
*
* @static
* @param {DependencyObject} sender the object generating the change
* @param {DependencyPropertyChangedEventArgs} args contains the information of changed property values
* @memberof DataGridModel
*/
private static itemsSourceChanged(
sender: DependencyObject,
args: DependencyPropertyChangedEventArgs
) {
const model: DataGridModel = sender as DataGridModel;
/* istanbul ignore else */
if (model) {
if (
args.OldValue?.CollectionChanged instanceof SubscriptionEvent &&
model.collectionChangedSubscription
) {
args.OldValue?.CollectionChanged.removeHandler(
model.collectionChangedSubscription
);
model.collectionChangedSubscription = null;
}
model.ItemsSourceArray = args.NewValue
? DataGridModel.getItemsSourceArray(args.NewValue)
: null;
if (args.NewValue?.CollectionChanged instanceof SubscriptionEvent) {
model.collectionChangedSubscription =
args.NewValue.CollectionChanged.addHandler(() => {
model.ItemsSourceArray = DataGridModel.getItemsSourceArray(
args.NewValue
);
model.change.fire(['ItemsSource']);
});
}
}
}
public ScrollIntoView(item: any, column: DataGridColumnModel): void {
const row = this.ItemsSourceArray.indexOf(item);
const col = this.Columns.toArray().indexOf(column);
if (row !== -1) {
this.ScrolledIntoView.fire([row, col]);
}
}
/**
* Cell click handler
*
* @param {*} $event
* @memberof DataGridModel
* @wIgnore
*/
public CellClickHandler($event: any): void {
this.SelectedItem = $event.dataItem;
}
/**
* Key down handler
*
* @param {*} event
* @memberof DataGridModel
* @wIgnore
*/
public KeyDownHandler(event: any): void {
this.KeyDown.fire([this, event]);
}
public addColumn(column: any): void {
if (!this.Columns) {
this.Columns = new ObservableCollection<DataGridColumnModel>();
}
this.Columns.add(column);
}
public setSelectableSettings(): void {
this.selectableSettings = {
mode: 'multiple',
enabled: true,
checkboxOnly: false,
};
}
public getColumns(): ObservableCollection<DataGridColumnModel> {
return this.Columns;
}
/**
* Extracts an array from the given object. if the value is an array itself then it is returned
* otherway its {internalArray} property is called (if existing)
*
* @static
* @param {*} value
* @return {*} {any[]}
* @memberof DataGridModel
*/
static getItemsSourceArray(value: any): any[] {
return Array.isArray(value) ? value : value?.internalArray;
}
/**
* Handles the DataGridModel.RowStyle changed event.
*
* @static
* @param {DependencyObject} sender the object generating the change
* @param {DependencyPropertyChangedEventArgs} args contains the information of changed property values
* @memberof DataGridModel
* @wIgnore
*/
private static OnRowStyleChangedCallback(
sender: DependencyObject,
args: DependencyPropertyChangedEventArgs
) {
const model: DataGridModel = sender as DataGridModel;
const newValue = args.NewValue as RuntimeStyleInfo;
/* istanbul ignore else */
if (model && newValue) {
const setter = iuFirstOrDefault<Setter>(
newValue.Setters,
(x) => x.Property === 'CustomCSSClasses'
);
const customClass = setter ? (setter.Value as string) : '';
model.CustomCSSClasses = customClass;
}
}
}