-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' of github.com:valor-software/ngx-bootstrap…
… into 4622-branch
- Loading branch information
Showing
47 changed files
with
904 additions
and
162 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<rating [(ngModel)]="rate" [max]="max"></rating> | ||
<div class="card"> | ||
<pre class="card-block card-header" style="margin:15px 0;">Rate: <b>{{rate}}</b> </pre> | ||
</div> |
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,17 @@ | ||
import { Component } from '@angular/core'; | ||
import { RatingConfig } from 'ngx-bootstrap/rating'; | ||
|
||
// such override allows to keep some initial values | ||
export function getRatingConfig(): RatingConfig { | ||
return Object.assign(new RatingConfig(), { ariaLabel: 'My Rating' }); | ||
} | ||
|
||
@Component({ | ||
selector: 'demo-rating-config', | ||
templateUrl: './config.html', | ||
providers: [{ provide: RatingConfig, useFactory: getRatingConfig }] | ||
}) | ||
export class DemoRatingConfigComponent { | ||
max = 10; | ||
rate = 7; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
<pre class="card card-block card-header">Model: {{asyncSelected | json}}</pre> | ||
<pre class="card card-block card-header">Model: {{ asyncSelected | json }}</pre> | ||
|
||
<input [(ngModel)]="asyncSelected" | ||
[typeaheadAsync]="true" | ||
[typeahead]="dataSource" | ||
(typeaheadLoading)="changeTypeaheadLoading($event)" | ||
(typeaheadOnSelect)="typeaheadOnSelect($event)" | ||
[typeaheadOptionsLimit]="7" | ||
[typeaheadAsync]="true" | ||
typeaheadOptionField="name" | ||
placeholder="Locations loaded with timeout" | ||
placeholder="Locations loaded via observable" | ||
class="form-control"> | ||
<div *ngIf="typeaheadLoading">Loading</div> |
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
Oops, something went wrong.