WjSheet Class

File
wijmo.angular2.js
Module
wijmo/wijmo.angular2.grid.sheet
Base Class
Sheet
Show
   

Angular 2 component for the Sheet control.

The wj-sheet component must be contained in a WjFlexSheet component.

Use the wj-sheet component to add Sheet controls to your Angular 2 applications. For details about Angular 2 markup syntax, see Angular 2 Markup.

The WjSheet component is derived from the Sheet control and inherits all its properties, events and methods.

Constructor

Properties

Methods

Events

Constructor

constructor

constructor(owner?: FlexSheet, grid?: FlexGrid, sheetName?: string, rows?: number, cols?: number): Sheet

Initializes a new instance of the FlexSheet class.

Parameters
Inherited From
Sheet
Returns
Sheet

Properties

columnCount

Gets or sets the number of columns in the sheet.

Inherited From
Sheet
Type
number

grid

Gets the associated FlexGrid control used to store the sheet data.

Inherited From
Sheet
Type
FlexGrid

initialized

This event is triggered after the component has been initialized by Angular, that is all bound properties have been assigned and child components (if any) have been initialized.

Type
EventEmitter

isInitialized

Indicates whether the component has been initialized by Angular. Changes its value from false to true right before triggering the initialized event.

Type
boolean

itemsSource

Gets or sets the array or ICollectionView for the FlexGrid instance of the sheet.

Inherited From
Sheet
Type
any

name

Gets or sets the name of the sheet.

Inherited From
Sheet
Type
string

nameChangedNg

Angular (EventEmitter) version of the Wijmo nameChanged event for programmatic access. Use this event name if you want to subscribe to the Angular version of the event in code. In template bindings use the conventional nameChanged Wijmo event name.

Type
EventEmitter

rowCount

Gets or sets the number of rows in the sheet.

Inherited From
Sheet
Type
number

selectionRanges

Gets the selection array.

Inherited From
Sheet
Type
ObservableArray

visible

Gets or sets the sheet visibility.

Inherited From
Sheet
Type
boolean

wjProperty

Gets or sets a name of a property that this component is assigned to. Default value is ''.

Type
string

Methods

created

created(): void

If you create a custom component inherited from a Wijmo component, you can override this method and perform necessary initializations that you usually do in a class constructor. This method is called in the last line of a Wijmo component constructor and allows you to not declare your custom component's constructor at all, thus preventing you from a necessity to maintain constructor parameters and keep them in synch with Wijmo component's constructor parameters.

Returns
void

getCellStyle

getCellStyle(rowIndex: number, columnIndex: number): ICellStyle

Gets the style of specified cell.

Parameters
Inherited From
Sheet
Returns
ICellStyle

onNameChanged

onNameChanged(e: EventArgs): void

Raises the nameChanged event.

Parameters
Inherited From
Sheet
Returns
void

onVisibleChanged

onVisibleChanged(e: EventArgs): void

Raises the visibleChanged event.

Parameters
Inherited From
Sheet
Returns
void

Events

nameChanged

Occurs after the sheet name has changed.

Inherited From
Sheet
Arguments
EventArgs

visibleChanged

Occurs after the visible of sheet has changed.

Inherited From
Sheet
Arguments
EventArgs