| Name | Type | Default |
|
allowValueChangeOnClick
# |
Boolean
|
true
|
Sets or gets the allowValueChangeOnClick property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
[allowValueChangeOnClick]="true"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
allowValueChangeOnDrag
# |
Boolean
|
true
|
Sets or gets the allowValueChangeOnDrag property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
[allowValueChangeOnDrag]="true"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
allowValueChangeOnMouseWheel
# |
Boolean
|
true
|
Sets or gets the allowValueChangeOnMouseWheel property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
[allowValueChangeOnMouseWheel]="true"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
changing
# |
(oldValue: String | Number, newValue: String | Number) => Boolean
|
null
|
Sets or gets the changing property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
[changing]="changing"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
dragEndAngle
# |
Number
|
0
|
Sets or gets the dragEndAngle property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
[dragEndAngle]="420"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
dragStartAngle
# |
Number
|
360
|
Sets or gets the dragStartAngle property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
[dragStartAngle]="120"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
disabled
# |
Boolean
|
false
|
Sets or gets the disabled property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
[disabled]="true"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
dial
# |
KnobDial
|
null
|
interface KnobDial { innerRadius?: Any; outerRadius?: Any; style?: Any; startAngle?: Number; endAngle?: Number; } Sets or gets the dial property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
[dial]="dial"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
endAngle
# |
Number
|
360
|
Sets or gets the endAngle property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
height
# |
String | Number
|
400
|
Sets or gets the height property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
[height]="400"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
labels
# |
KnobLabels
|
null
|
interface KnobLabels { rotate?: Any; offset?: String | Number; visible?: Boolean; step?: Number; style?: Any; formatFunction?: (label: String | Number) => String | Number; } Sets or gets the labels property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
marks
# |
KnobMarks
|
null
|
interface KnobMarks { colorProgress?: Any; colorRemaining?: Any; drawAboveProgressBar?: Boolean; minorInterval?: Number; majorInterval?: Number; majorSize?: String | Number; offset?: String; rotate?: Boolean; size?: String | Number; type?: KnobSpinnerMarksType; thickness?: Number; visible?: Boolean; } Sets or gets the marks property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
min
# |
Number
|
0
|
Sets or gets the min property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
max
# |
Number
|
100
|
Sets or gets the max property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
progressBar
# |
KnobProgressBar
|
null
|
interface KnobProgressBar { offset?: String | Number; style?: Any; size?: String | Number; background?: Any; ranges?: Array<Any>; } Sets or gets the progressBar property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
[progressBar]="progressBar"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
pointer
# |
KnobPointer
|
null
|
interface KnobPointer { offset?: String | Number; type?: String; style?: Any; size?: Number | String; thickness?: Number; visible?: Boolean; } Sets or gets the pointer property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
pointerGrabAction
# |
enum:KnobPointerGrabAction
|
"normal"
|
enum KnobPointerGrabAction { normal, progressBar, pointer } Sets or gets the pointerGrabAction property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
[pointerGrabAction]="'normal'"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
rotation
# |
enum:KnobRotation
|
"clockwise"
|
enum KnobRotation { clockwise, counterclockwise } Sets or gets the rotation property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
[rotation]="'counterclockwise'"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
startAngle
# |
Number
|
0
|
Sets or gets the startAngle property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
spinner
# |
KnobSpinner
|
null
|
interface KnobSpinner { innerRadius?: Any; outerRadius?: Any; style?: Any; marks?: KnobMarks; } interface KnobMarks { colorProgress?: Any; colorRemaining?: Any; drawAboveProgressBar?: Boolean; minorInterval?: Number; majorInterval?: Number; majorSize?: String | Number; offset?: String; rotate?: Boolean; size?: String | Number; type?: KnobSpinnerMarksType; thickness?: Number; visible?: Boolean; } Sets or gets the spinner property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
[spinner]="spinner"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
styles
# |
KnobStyle
|
null
|
Interface KnobStyle { fill?: any; stroke?: string; strokeWidth?: number; }
Sets or gets the Knob's background style.
- fill - fill color(hex string) or object(object.color(hex color), object.gradientType(linear, linearHorizontal or radial), gradientStops(Array like [[0, 1], [50, 0.5], [100, 1]])
- stroke - border color(hex string).
- strokeWidth - border width.
import { Component, viewChild } from '@angular/core';
import { jqxKnobComponent, jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[snapToStep]="true"
[rotation]="'clockwise'"
[pointer]="pointer"
[progressBar]="progressBar"
[marks]="marks"
[labels]="labels"
>
</jqxKnob>`,
styles: [
`
text.jqx-knob-label {
font-size: 20px;
}
`
]
})
export class App {
readonly myKnob = viewChild.required<jqxKnobComponent>('myKnob');
public styles = {
stroke: '#dfe3e9',
strokeWidth: 3,
fill: {
color: '#fefefe',
gradientType: 'linear',
gradientStops: [
[0, 1],
[50, 0.9],
[100, 1]
]
}
};
public marks = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
public labels = { offset: '88%', step: 10, visible: true };
public progressBar = {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
};
public pointer = {
type: 'circle',
style: {
fill: {
color: '#a4a3a3',
gradientType: 'linear',
gradientStops: [
[0, 0.5],
[50, 0.6],
[100, 1]
]
},
stroke: '#333'
},
size: '10%',
offset: '50%'
};
public ngAfterViewInit(): void {
this.myKnob().styles(this.styles);
}
}
|
|
style
# |
KnobStyle
|
null
|
interface KnobStyle { fill?: Any; stroke?: String; strokeWidth?: Number; } Sets or gets the style property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob #myKnob
[value]="60" [min]="0" [max]="100" [startAngle]="120" [endAngle]="420"
[marks]="marks" [labels]="labels" [pointer]="pointer" [style]="{ stroke: '#dfe3e9', strokeWidth: 3, fill: { color: '#fefefe', gradientType: "linear", gradientStops: [[0, 1], [50, 0.9], [100, 1]] } }"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
step
# |
Number
|
1
|
Sets or gets the step property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
[step]="10"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
snapToStep
# |
Boolean
|
true
|
Sets or gets the snapToStep property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
[snapToStep]="false"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
theme
# |
String
|
''
|
import { Component, viewChild } from '@angular/core';
import { jqxKnobComponent, jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[snapToStep]="true"
[rotation]="'clockwise'"
[pointer]="pointer"
[progressBar]="progressBar"
[marks]="marks"
[labels]="labels"
[theme]="'material'"
>
</jqxKnob>`,
styles: [
`
text.jqx-knob-label {
font-size: 20px;
}
`
]
})
export class App {
readonly myKnob = viewChild.required<jqxKnobComponent>('myKnob');
public styles = {
stroke: '#dfe3e9',
strokeWidth: 3,
fill: {
color: '#fefefe',
gradientType: 'linear',
gradientStops: [
[0, 1],
[50, 0.9],
[100, 1]
]
}
};
public marks = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
public labels = { offset: '88%', step: 10, visible: true };
public progressBar = {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
};
public pointer = {
type: 'circle',
style: {
fill: {
color: '#a4a3a3',
gradientType: 'linear',
gradientStops: [
[0, 0.5],
[50, 0.6],
[100, 1]
]
},
stroke: '#333'
},
size: '10%',
offset: '50%'
};
public ngAfterViewInit(): void {
this.myKnob().styles(this.styles);
}
}
|
|
value
# |
Number
|
0
|
Sets or gets the value property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
width
# |
String | Number
|
400
|
Sets or gets the width property.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
[width]="500"
>
</jqxKnob>
`
})
export class App {
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
|
|
change
# |
Event
|
|
This event is triggered when the value is changed.
Code examples #
Bind to the change event of jqxKnob.
import { Component } from '@angular/core';
import { jqxKnobModule } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
(onChange)="Change($event)"
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
>
</jqxKnob>
`
})
export class App {
Change(event: any): void {
// Do Something
}
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
|
| Name | Return Type | Arguments |
|
destroy
# |
Void
|
None
|
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxKnobModule, jqxKnobComponent } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
>
</jqxKnob>
`
})
export class App implements AfterViewInit {
readonly myKnob = viewChild.required<jqxKnobComponent>('myKnob');
ngAfterViewInit(): void {
this.myKnob().destroy();
}
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|
|
val
# |
Number
|
value: String | Number
|
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxKnobModule, jqxKnobComponent } from 'jqwidgets-ng/jqxknob';
@Component({
selector: 'app-root',
imports: [jqxKnobModule],
template: `
<jqxKnob
#myKnob
[value]="60"
[min]="0"
[max]="100"
[startAngle]="120"
[endAngle]="420"
[marks]="marks"
[labels]="labels"
[pointer]="pointer"
>
</jqxKnob>
`
})
export class App implements AfterViewInit {
readonly myKnob = viewChild.required<jqxKnobComponent>('myKnob');
ngAfterViewInit(): void {
let value = this.myKnob().val();
}
marks: any = {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
};
labels: any = { offset: '88%', step: 10, visible: true };
pointer: any = {
type: 'arrow',
style: { fill: '#00a4e1', stroke: 'grey' },
size: '59%',
offset: '49%',
thickness: 20
};
}
|