This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a07791
commit 74621bb
Showing
6 changed files
with
46 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="md2-chips-container" [class.md2-chip-disabled]="disabled" [class.md2-chip-remove]="!isRemovable"><span *ngFor="let chip of chipItemList; let i = index" class="md2-chip" [class.active]="selectedChip === i"><span>{{chip.text}}</span> <span [innerHTML]="templateHtmlString"></span> <svg (click)="removeSelectedChip(i)" width="24" height="24" viewBox="0 0 24 24" *ngIf="isRemovable"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg></span><ng-content select=".md2-template"></ng-content><form #chipInputForm="ngForm" class="chip-input-form"><input *ngIf="!isAutoComplete" class="chip-input" [disabled]="disabled" [type]="type" [(ngModel)]="inputValue" name="chipInput" [placeholder]="placeholder" (paste)="inputPaste($event)" (keydown)="inputChanged($event)" (blur)="inputBlurred()" (focus)="inputFocus()"><div *ngIf="isAutoComplete"><md2-autocomplete [items]="autocompleteDataList" [item-text]="autocompleteItemText" [(ngModel)]="item" name="autocomplete" [disabled]="disabled" (textChange)="valueupdate($event)" (change)="changeAutocomplete($event)" [placeholder]="placeholder" (keydown)="inputChanged($event)" (click)="getFocusAutocomplete()"></md2-autocomplete></div></form></div><div class="chip-error" *ngIf="this.chipItemList.length<this.minChips">Minimum {{minChips}} chip required.</div><div class="chip-error" *ngIf="this.chipItemList.length>=this.maxChips">You are able to add Maximum {{maxChips}} chip.</div> | ||
<div class="md2-chips-container" [class.md2-chip-disabled]="disabled" [class.md2-chip-remove]="!isRemovable"><span *ngFor="let chip of chipItemList; let i = index" class="md2-chip" [class.active]="selectedChip === i"><span>{{chip.text}}</span> <span [innerHTML]="templateHtmlString"></span> <svg (click)="removeSelectedChip(i)" width="24" height="24" viewBox="0 0 24 24" *ngIf="isRemovable"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg></span><ng-content select=".md2-template"></ng-content><form #chipInputForm="ngForm" class="chip-input-form"><input *ngIf="!isAutoComplete" class="chip-input" [disabled]="disabled" [type]="type" [(ngModel)]="inputValue" name="chipInput" [placeholder]="placeholder" (paste)="inputPaste($event)" (keydown)="inputChanged($event)" (blur)="inputBlurred()" (focus)="inputFocus()"><div *ngIf="isAutoComplete"><md2-autocomplete name="autocomplete" [placeholder]="placeholder" [disabled]="disabled" [(ngModel)]="item" [items]="autocompleteDataList" [item-text]="autocompleteItemText" (textChange)="valueupdate($event)" (change)="changeAutocomplete($event)" (keydown)="inputChanged($event)" (click)="getFocusAutocomplete()"></md2-autocomplete></div></form></div><div class="chip-error" *ngIf="this.chipItemList.length<this.minChips">Minimum {{minChips}} chip required.</div><div class="chip-error" *ngIf="this.chipItemList.length>=this.maxChips">You are able to add Maximum {{maxChips}} chip.</div> |
Oops, something went wrong.