jqwidgets-framework
Version:
jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.
26 lines (22 loc) • 569 B
text/typescript
import { Component } from '@angular/core';
({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
getWidth() : any {
if (document.body.offsetWidth < 850) {
return '90%';
}
return 850;
}
markersFormatFunction(value, position): string {
let side;
if (position == "left") {
side = "From";
} else if (position == "right") {
side = "To";
};
return side + ": <span>" + value.toFixed(0) + "</span>";
}
}