jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
33 lines (28 loc) • 922 B
text/typescript
import { Component, ViewEncapsulation } from '@angular/core';
({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
encapsulation: ViewEncapsulation.None
})
export class AppComponent {
players: number[] = [25, 46, 6, 55, 14, 22, 57, 40, 87, 20];
title: any = { text: 'Ranking', subtitle: '(boundary - 33 points)' };
labels: any = {
formatFunction: (value: string) => {
let realVal = parseInt(value);
return realVal + ' pts';
},
font: { size: 12 },
indent: 10
}
tooltip: any = {
classname: 'myTooltip',
formatFunction: (value: string) => {
let realVal = parseInt(value);
let player = this.players.indexOf(realVal) + 1;
return ('Player ' + player + ': ' + realVal + ' points');
},
visible: true
}
}