Skip to content

Commit

Permalink
fix(igx-tab): rename igx-tab to igx-bottom-nav
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Template id `tabbar` is renamed to `bottom-nav`
#244
  • Loading branch information
bazal4o committed Apr 20, 2018
1 parent 47c54cc commit 7cd792e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div>
<p>igx-tab-bar component. You can read more about configuring the igx-tab-bar component <a href="https://github.com/IgniteUI/igniteui-angular/blob/master/src/tabbar/README.md" target="_blank">here</a>.</p>
<igx-tab-bar>
<p>igx-bottom-nav component. You can read more about configuring the igx-bottom-nav component <a href="https://github.com/IgniteUI/igniteui-angular/blob/master/src/tabbar/README.md" target="_blank">here</a>.</p>
<igx-bottom-nav>
<igx-tab-panel icon="phone">
<h3 class="header">History</h3>
<div class="item" igxRipple="pink" *ngFor="let contact of userContacts">
Expand Down Expand Up @@ -36,5 +36,5 @@ <h3>Tab 3 Content</h3>
Mauris vel quam at velit venenatis vulputate in quis nisl.</p>
</div>
</igx-tab-panel>
</igx-tab-bar>
</igx-bottom-nav>
</div>
14 changes: 7 additions & 7 deletions templates/angular/igx-ts/tabbar/default/index.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { IgniteUIForAngularTemplate } from "../../../../../lib/templates/IgniteUIForAngularTemplate";

class IgxTabbarTemplate extends IgniteUIForAngularTemplate {
class IgxBottomNavTemplate extends IgniteUIForAngularTemplate {
constructor() {
super(__dirname);
this.components = ["Tabbar"];
this.components = ["Bottom Navigation"];
this.controlGroup = "Layouts";
this.listInComponentTemplates = true;
this.id = "tabbar";
this.id = "bottom-nav";
this.projectType = "igx-ts";
this.name = "Tabbar";
this.description = "Three item tabbar template";
this.name = "Bottom Navigation";
this.description = "Three item bottom navigation template";
this.dependencies = [{
from: "igniteui-angular/main",
import: ["IgxTabBarModule", "IgxAvatarModule", "IgxIconModule", "IgxRippleModule"]
import: ["IgxBottomNavModule", "IgxAvatarModule", "IgxIconModule", "IgxRippleModule"]
}];
}
}
module.exports = new IgxTabbarTemplate();
module.exports = new IgxBottomNavTemplate();
6 changes: 3 additions & 3 deletions templates/angular/igx-ts/tabbar/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@

import { BaseComponent } from "../../../../lib/BaseComponent";

class IgxTabbarComponent extends BaseComponent {
class IgxBottomNavComponent extends BaseComponent {
/**
*
*/
constructor() {
super(__dirname);
this.name = "Tabbar";
this.name = "Bottom Navigation";
this.group = "Layouts";
}
}
module.exports = new IgxTabbarComponent();
module.exports = new IgxBottomNavComponent();

0 comments on commit 7cd792e

Please sign in to comment.