Skip to content

Commit 97fda4a

Browse files
committed
feat(nav-drawer-tabs): Updating the changelog and readme. #7157
1 parent bcf6073 commit 97fda4a

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ All notable changes for each version of this project will be documented in this
1717
- **Breaking Change** - Deprecated the `label` property.
1818
- `igxGridActions`
1919
- Added `asMenuItems` Input for grid actions - `igx-grid-editing-actions`, `igx-grid-pinning-actions`. When set to true will render the related action buttons as separate menu items with button and label.
20-
20+
- `igxNavigationDrawer`
21+
- Added `disableAnimation` input property which enables/disables the animation for the opening and the closing of the drawer. Set to `false` by default.
22+
- `igxTabs`
23+
- Added `disableAnimation` input property which enables/disables the animation for transition of the content of the tabs. Set to `false` by default.
2124

2225
### New Features
2326
- `IgxGrid`, `IgxTreeGrid`, `IgxHierarchicalGrid`

projects/igniteui-angular/src/lib/navigation-drawer/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ The navigation drawer can either sit above content or be pinned alongside it and
6464
| `pinThreshold` | number | Minimum device width required for automatic pin to be toggled. Default is 1024, can be set to a falsy value to disable this behavior. |
6565
| `width` | string| Width of the drawer in its open state. Defaults to "280px".|
6666
| `miniWidth` | string | Width of the drawer in its mini variant. Defaults to "60px". |
67+
| `disableAnimation` | boolean | Enables/disables the animation for the opening and the closing of the drawer. Set to `false` by default.
6768

6869
### Outputs
6970
| Name | Description |

projects/igniteui-angular/src/lib/tabs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ If the total visible items width exceeds the vew port width, scroll buttons are
4949
| `label` | string | Set the tab item text. |
5050
| `disabled` | boolean | Set if the tab is enabled/disabled. |
5151
| `type` | IgxTabsType | Set the tab item sizing mode. By default, `contentfit` is set, the tab item width is sized to its content in the range of min/max width. When the sizing type is `fixed` - all tabs have equal size to fit the view port. |
52+
| `disableAnimation`| boolean | Enables/disables the animation for transition of the contents of the tabs. Set to `false` by default.
5253

5354
## Events
5455

projects/igniteui-angular/src/lib/tabs/tabs.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export class IgxTabsComponent implements IgxTabsBase, AfterViewInit, OnDestroy {
246246
public visibleItemsWidth: number;
247247

248248
@Input()
249-
public enableAnimation = true;
249+
public disableAnimation = false;
250250

251251
/**
252252
* @hidden
@@ -465,7 +465,7 @@ export class IgxTabsComponent implements IgxTabsBase, AfterViewInit, OnDestroy {
465465
this.onTabItemSelected.emit({ tab: newTab, group: newTabRelatedGroup });
466466

467467
requestAnimationFrame(() => {
468-
const transitionDuration = this.enableAnimation ? 0.2 : 0;
468+
const transitionDuration = this.disableAnimation ? 0 : 0.2;
469469
// bring the new selected tab into view if it is not
470470
this.bringNewTabIntoView(newTab);
471471
// animate the new selection indicator

0 commit comments

Comments
 (0)