Guest User

Untitled

a guest
Mar 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. <ion-item-sliding *ngFor="let holding of holdingsProvider.holdings" #slidingItem>
  2.  
  3. <ion-item class="holding" color="primary">
  4. <p><strong>{{holding.crypto}}/{{holding.currency}}</strong></p>
  5. <p class="amount"><strong>Coins:</strong> {{holding.amount}} <strong>Value:</strong> {{holding.value | currency}}</p>
  6. <p *ngIf="holding.value > 0" class="value">{{holding.amount * holding.value | currency}}</p>
  7. </ion-item>
  8.  
  9. <ion-item-options>
  10. <button ion-button icon-only color="danger" (click)="removeHolding(holding, slidingItem)"><ion-icon name="trash"></ion-icon></button>
  11. <button ion-button icon-only color="edit" (click)="editHolding(holding, slidingItem)"><ion-icon name="settings"></ion-icon></button>
  12. </ion-item-options>
  13.  
  14. </ion-item-sliding>
  15.  
  16. ionViewDidLoad() {
  17.  
  18. this.doughnutChart = new Chart(this.doughnutCanvas.nativeElement, {
  19.  
  20. type: 'doughnut',
  21. data: {
  22. datasets: [{
  23. label: '# of Votes',
  24. data: [12, 19, 3, 5, 2, 3],
  25. backgroundColor: [
  26. 'rgba(255, 99, 132, 0.2)',
  27. 'rgba(54, 162, 235, 0.2)',
  28. 'rgba(255, 206, 86, 0.2)',
  29. 'rgba(75, 192, 192, 0.2)',
  30. 'rgba(153, 102, 255, 0.2)',
  31. 'rgba(255, 159, 64, 0.2)'
  32. ],
  33. borderColor: [
  34. 'rgba(255,99,132,1)',
  35. 'rgba(54, 162, 235, 1)',
  36. 'rgba(255, 206, 86, 1)',
  37. 'rgba(75, 192, 192, 1)',
  38. 'rgba(153, 102, 255, 1)',
  39. 'rgba(255, 159, 64, 1)'
  40. ],
  41. borderWidth: 1
  42. }]
  43. },
  44. options: {
  45. scales: {
  46. }
  47. }
  48.  
  49. });
Add Comment
Please, Sign In to add comment