-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tabset): add nav justification and orientation
- Loading branch information
1 parent
9447f5d
commit 73ba757
Showing
9 changed files
with
191 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
demo/src/app/components/tabset/demos/justify/tabset-justify.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<ngb-tabset [justify]="currentJustify"> | ||
<ngb-tab title="Simple"> | ||
<ng-template ngbTabContent> | ||
<p>Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth | ||
master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh | ||
dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum | ||
iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.</p> | ||
</ng-template> | ||
</ngb-tab> | ||
<ngb-tab> | ||
<ng-template ngbTabTitle><b>Fancy</b> title</ng-template> | ||
<ng-template ngbTabContent>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. | ||
<p>Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table | ||
craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl | ||
cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia | ||
yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean | ||
shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero | ||
sint qui sapiente accusamus tattooed echo park.</p> | ||
</ng-template> | ||
</ngb-tab> | ||
<ngb-tab title="A very long nav title"> | ||
<ng-template ngbTabContent> | ||
<p>Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth | ||
master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh | ||
dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum | ||
iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.</p> | ||
</ng-template> | ||
</ngb-tab> | ||
</ngb-tabset> | ||
|
||
<div class="btn-group" ngbRadioGroup [(ngModel)]="currentJustify"> | ||
<label ngbButtonLabel class="btn-outline-primary btn-sm"> | ||
<input ngbButton type="radio" value="start">Start | ||
</label> | ||
<label ngbButtonLabel class="btn-outline-primary btn-sm"> | ||
<input ngbButton type="radio" value="center">Center | ||
</label> | ||
<label ngbButtonLabel class="btn-outline-primary btn-sm"> | ||
<input ngbButton type="radio" value="end">End | ||
</label> | ||
<label ngbButtonLabel class="btn-outline-primary btn-sm"> | ||
<input ngbButton type="radio" value="fill">Fill | ||
</label> | ||
<label ngbButtonLabel class="btn-outline-primary btn-sm"> | ||
<input ngbButton type="radio" value="justified">Justified | ||
</label> | ||
</div> |
9 changes: 9 additions & 0 deletions
9
demo/src/app/components/tabset/demos/justify/tabset-justify.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import {Component} from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'ngbd-tabset-justify', | ||
templateUrl: './tabset-justify.html' | ||
}) | ||
export class NgbdTabsetJustify { | ||
currentJustify = 'start'; | ||
} |
38 changes: 38 additions & 0 deletions
38
demo/src/app/components/tabset/demos/orientation/tabset-orientation.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<ngb-tabset type="pills" [orientation]="currentOrientation"> | ||
<ngb-tab title="Simple"> | ||
<ng-template ngbTabContent> | ||
<p>Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth | ||
master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh | ||
dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum | ||
iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.</p> | ||
</ng-template> | ||
</ngb-tab> | ||
<ngb-tab> | ||
<ng-template ngbTabTitle><b>Fancy</b> title</ng-template> | ||
<ng-template ngbTabContent>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. | ||
<p>Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table | ||
craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl | ||
cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia | ||
yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean | ||
shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero | ||
sint qui sapiente accusamus tattooed echo park.</p> | ||
</ng-template> | ||
</ngb-tab> | ||
<ngb-tab title="Disabled" [disabled]="true"> | ||
<ng-template ngbTabContent> | ||
<p>Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth | ||
master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh | ||
dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum | ||
iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.</p> | ||
</ng-template> | ||
</ngb-tab> | ||
</ngb-tabset> | ||
|
||
<div class="btn-group" ngbRadioGroup [(ngModel)]="currentOrientation"> | ||
<label ngbButtonLabel class="btn-outline-primary btn-sm"> | ||
<input ngbButton type="radio" value="horizontal">Horizontal | ||
</label> | ||
<label ngbButtonLabel class="btn-outline-primary btn-sm"> | ||
<input ngbButton type="radio" value="vertical">Vertical | ||
</label> | ||
</div> |
9 changes: 9 additions & 0 deletions
9
demo/src/app/components/tabset/demos/orientation/tabset-orientation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import {Component} from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'ngbd-tabset-orientation', | ||
templateUrl: './tabset-orientation.html' | ||
}) | ||
export class NgbdTabsetOrientation { | ||
currentOrientation = 'horizontal'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters