11.2.0-alpha.5
Pre-release
Pre-release
·
8763 commits
to master
since this release
General
IgxGrid,IgxTreeGrid,IgxHierarchicalGrid- Breaking Change - The
localeandpipeArgsparameters are removed from theoperatemethod exposed by theIgxNumberSummaryOperand,IgxDateSummaryOperand,IgxCurrencySummaryOperandandIgxPercentSummaryOperand. They are now set in theigx-grid-summary-celltemplate. To change the locale and format setting of theigx-grid-summary-cellthe user can use the newsummaryFormatterproperty of theIgxColumnComponent.
- Breaking Change - The
IgxTabs,IgxBottomNav- Breaking Change -
IgxTabsandIgxBottomNavcomponents were completely refactored in order to provide more flexible and descriptive way to define tab headers and contents. Please make sure to update viang updatein order to migrate the existingigx-tabsandigx-bottom-navdefinitions to the new ones.
- Breaking Change -
IgxForOfDirective- Breaking Change -
IgxForOfDirectiveevents are renamed as follows:onChunkLoad->chunkLoadonScrollbarVisibilityChanged->scrollbarVisibilityChangedonContentSizeChange->contentSizeChangeonDataChanged->dataChangedonBeforeViewDestroyed->beforeViewDestroyedonChunkPreload->chunkPreloadonDataChanging->dataChanging
- Breaking Change -
IgxColumnComponent- Breaking Change - The
onColumnChangeoutput is renamed tocolumnChange.
- Breaking Change - The
- Breaking Change -
IgxHierarchicalGridandigxRowIslandevents are renamed as follows:onGridCreated->gridCreatedonGridInitialized->gridInitializedonDataPreLoad->dataPreLoad
New Features
IgxForOf,IgxGrid,IgxTreeGrid,IgxHierarchicalGrid- Behavioral Change - Virtual containers now scroll smoothly when using the mouse wheel(s) to scroll them horizontally or vertically. This behavior more closely resembles the scrolling behavior of non-virtualized containers in most modern browsers.
IgxGrid,IgxTreeGrid,IgxHierarchicalGrid- The
IgxRowAddTextDirectiveallows to customize the text of the row adding overlay.<igx-grid [rowEditable]="true"> <ng-template igxRowAddText> Adding Row </ng-template> </igx-grid>
- A new
summaryFormatterinput property is exposed by theIgxColumnComponent, which is used to format the displayed summary values for the columns. - Behavioral Change -
Column Autosizefeature now does not handle templated headers where the first level children are sized based on parent like defaultdivand etc. Autosizing for such headers will not result in change. - Behavioral Change - Calling
autosizethrough theIgxColumnComponentAPI now takes into consideration theminWidthandmaxWidthof the column. - A new
IgxColumnComponentinput property is exposed calledautosizeHeader, which if false, allows the autosizing to ignore the header cell and autosize only based on content cells.
- The
IgxTabs- The
tabAlignmentproperty of theIgxTabscomponent replaces thetypeproperty and enables you to set the tab alignment tostart,center,endandjustify. - The
igx-tab-headersupportsigx-prefixandigx-suffixdirectives in itsng-content.
- The
IgxBottomNav- The
IgxBottomNavcomponent exposesdisableAnimationsproperty which determines whether the contents should animate when switching the selected item. The property is set totrueby default which means that the animations are disabled.
- The
IgxOverlayServicedetachanddetachAllmethods are added toIgxOverlayService. Callingdetachwill remove all the elements generated for the related overlay, as well as clean up all related resources. CallingdetachAllwill remove all elements generated by any call toIgxOverlayattach, and will clean up all related resources. Note: callinghideorhideAllwill not clean generated by the service elements and will not clean up related resources.
IgxCombo- Any changes to
IComboItemAdditionEvent.addedItemwill be reflected in the item added to the data. IgxComboComponent.onAdditionis now cancelable. You can prevent the item from being added by setting the event argscancelproperty totrue.
public handleComboItemAddition(event: IComboItemAdditionEvent): void { if (event.addedItem[this.combo.valueKey] === 'ForbiddenValue') { event.cancel = true; } else if (event.addedItem[this.combo.valueKey] === 'Change Me') { const index = this.iter++; event.addedItem = { [this.combo.valueKey]: `customId${index}`, [this.combo.displayKey]: `New item ${index}`; } } }
- Any changes to
Themes:
-
Breaking Changes:
IgxButtontheme has been simplified. The number of theme params (igx-button-theme) has been reduced significantly and no longer includes prefixed parameters (flat-*,raised-*, etc.). See the migration guide to update existing button themes. Updates performed withng updatewill migrate existing button themes but some additional tweaking may be required to account for the abscense of prefixed params.- The
igx-typographymixin is no longer implicitly included withigx-core. To use our typography styles users have to include the mixin explicitly:
@include igx-core(); /// Example with Indigo Design theme: @include igx-typography($font-family: $indigo-typeface, $type-scale: $indigo-type-scale);