12.1.0-alpha.5
Pre-releaseNew Features
-
Added
IgxAccordion
component- A collection of vertically collapsible igx-expansion-panels that provide users with data and the ability to navigate through it in a compact manner. The control is not data bound and takes a declarative approach, giving users more control over what is being rendered.
- Exposed API to control the expansion state, easy-to-use keyboard navigation, option for nested accordions.
- Code example below:
<igx-accordion> <igx-expansion-panel *ngFor="let panel of panels"> ... </igx-expansion-panel> </igx-accordion>
- For more information, check out the README, specification and official documentation
-
igxGrid
- New
additionalTemplateContext
column input:
<igx-column [additionalTemplateContext]="contextObject"> <ng-template igxCell let-cell="cell" let-props="additionalTemplateContext"> {{ props }} </ng-template> </igx-column>
- New
-
IgxGrid
,IgxTreeGrid
,IgxHierarchicalGrid
- Added
batchEditing
- anInput
property for controlling what type of transaction service is provided for the grid.
Setting<igx-grid [batchEditing]="true">
is the same as providing[{ provide: IgxGridTransaction, useClass: IgxTransactionService }]
. - Deprecation - Providing a transaction service for the grid via
providers: [IgxTransactionService]
is now deprecated and will be removed in a future patch.
Instead, use the newbatchEditing
property to control the grid's Transactions.
<igx-grid #grid [data]="data" [batchEditing]="true"> ... </igx-grid> <button igxButton (click)="grid.transactions.undo">Undo</button>
- Added
-
Transactions
- Added
IgxFlatTransactionFactory
- the singleton service instantiates a newTransactionService<Transaction, State>
given atransaction type
. - Added
IgxHierarchicalTransactionFactory
- the singleton service instantiates a newHierarchicalTransactionService<HierarchicalTransaction, HierarchicalState>
given atransaction type
.
- Added
-
Toolbar Actions
- Exposed a new input property
overlaySettings
for all column actions (hiding
|pinning
|advanced filtering
|exporter
). Example below:
<igx-grid-toolbar-actions> <igx-grid-toolbar-pinning [overlaySettings]="overlaySettingsGlobal"></igx-grid-toolbar-pinning> <igx-grid-toolbar-hiding [overlaySettings]="overlaySettingsAuto"></igx-grid-toolbar-hiding> </igx-grid-toolbar-actions>
- Exposed a new input property
-
IgxPaginatorComponent
- Added
paging
andpagingDone
events;paging
event is cancellable and is emitted before pagination is performed,pagingDone
event gives you information about the previous and the current page number and is not cancellable; AlsoIgxPageSizeSelectorComponent
andIgxPageNavigationComponent
are introduced and now the paginator components allows you to define a custom content, as it is shown in the example below:
<igx-paginator #paginator> <igx-paginator-content> <igx-page-size></igx-page-size> <button [disabled]="paginator.isFirstPage" (click)="paginator.previousPage()">PREV</button> <span>Page {{paginator.page}} of {{paginator.totalPages}}</span> <button [disabled]="paginator.isLastPage" (click)="paginator.nextPage()">NEXT</button> </igx-paginator-content> </igx-paginator>
- Added
-
Exporters
'scolumnExporting
event now supports changing the index of the column in the exported file.this.excelExporterService.columnExporting.subscribe((col) => { if (col.field === 'Index') { col.columnIndex = 0; } });
-
IgxExcelExporterService
- Added support for exporting the grids' multi-column headers to Excel. By default, the multi-column headers would be exported but this behavior can be controlled by the
ignoreMultiColumnHeaders
option off the IgxExcelExporterOptions object.
- Added support for exporting the grids' multi-column headers to Excel. By default, the multi-column headers would be exported but this behavior can be controlled by the
-
IgxDateTimeEditor
,IgxMask
,IgxDatePicker
,IgxTimePicker
,IgxDateRangePicker
- Added IME input support. When typing in an Asian language input, the control will display input method compositions and candidate lists directly in the control’s editing area, and immediately re-flow surrounding text as the composition ends.
General
-
IgxGridComponent
- The following properties are deprecated:
paging
perPage
page
totalPages
isFirstPage
isLastPage
pageChange
perPageChange
pagingDone
- The following methods, also are deprecated:
nextPage()
previousPage()
- Breaking Change the following property has been removed
paginationTemplate
- The following properties are deprecated:
-
IgxPaginatorComponent
- Deprecated properties
selectLabel
andprepositionPage
are now removed; - Breaking Change - the following properties are removed
pagerEnabled
pagerHidden
dropdownEnabled
dropdownHidden
- Deprecated properties
-
IgxSnackbarComponent
- Deprecated property
message
is now removed; - Breaking Change - the
snackbarAnimationStarted
andsnackbarAnimationDone
methods are now removed. TheanimationStarted
andanimationDone
events now provide reference to theToggleViewEventArgs
interface as an argument and are emitted by theonOpened
andonClosed
events of theIgxToggleDirective
.
- Deprecated property
-
IgxToastComponent
- Deprecated property
message
is now removed; - Breaking Change - The
isVisibleChange
event now provides reference to theToggleViewEventArgs
interface as an argument.
- Deprecated property
-
Breaking Change -
IgxOverlayService
events are renamed as follows:onOpening
->opening
onOpened
->opened
onClosing
->closing
onClosed
->closed
onAppended
->contentAppended
onAnimation
->animationStarting
-
Breaking Change -
IgxBannerComponent
events are renamed as follows:onOpening
->opening
onOpened
->opened
onClosing
->closing
onClosed
->closed
-
IgxExpansionPanelComponent
-
Breaking Change -
IgxExpansionPanelComponent
events are renamed as follows:onCollapsed
->contentCollapsed
onExpanded
->contentExpanded
-
Breaking Change -
IgxExpansionPanelHeaderComponent
events are renamed as follows:onInteraction
->interaction
-
Behavioral Change - Settings
disabled
property ofIgxExpansionPanelHeaderComponent
now makes the underlying header element not accessible viaTab
navigation (viatabindex="-1"
) -
Feature - Added
contentExpanding
andcontentCollapsing
events, fired when the panel's content starts expanding or collapsing, resp.
Both events can be canceled, preventing the toggle animation from firing and thecollapsed
property from changing:
<igx-expansion-panel (contentExpanding)="handleExpandStart($event)" (contentCollapsing)="handleCollapseStart($event)"> ... </igx-expansion-panel>
-
-
IgxDropDown
- Breaking Change - The dropdown items no longer takes focus unless
allowItemsFocus
is set totrue
.
- Breaking Change - The dropdown items no longer takes focus unless
Themes
- Breaking Change - The
$color
property of theigx-action-strip-theme
has been renamed as follows:$color
->$icon-color