29 lines
603 B
TypeScript
29 lines
603 B
TypeScript
|
import * as React from 'react';
|
||
|
|
||
|
interface KnobChangeParams {
|
||
|
value: number;
|
||
|
}
|
||
|
|
||
|
export interface KnobProps {
|
||
|
id?: string;
|
||
|
style?: object;
|
||
|
className?: string;
|
||
|
value?: number;
|
||
|
size?: number;
|
||
|
disabled?: boolean;
|
||
|
readOnly?: boolean;
|
||
|
showValue?: boolean;
|
||
|
step?: number;
|
||
|
min?: number;
|
||
|
max?: number;
|
||
|
strokeWidth?: number;
|
||
|
name?: string;
|
||
|
valueColor?: string;
|
||
|
rangeColor?: string;
|
||
|
textColor?: string;
|
||
|
valueTemplate?: string;
|
||
|
onChange?(e: KnobChangeParams): void;
|
||
|
}
|
||
|
|
||
|
export declare class Knob extends React.Component<KnobProps, any> { }
|