Knob d.ts updated

pull/3689/head
Bahadır Sofuoğlu 2023-03-01 11:45:08 +03:00
parent 4aec146faf
commit e01d71835f
1 changed files with 11 additions and 2 deletions

View File

@ -10,7 +10,7 @@
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
/**
* Defines valid properties in Knob component. In addition to these, all properties of HTMLDivElement can be used in this component.
* Defines valid properties in Knob component.
*/
export interface KnobProps {
/**
@ -24,14 +24,17 @@ export interface KnobProps {
size?: number | undefined;
/**
* When present, it specifies that the component should be disabled.
* @defaultValue false
*/
disabled?: boolean | undefined;
/**
* When present, it specifies that the component value cannot be edited.
* @defaultValue false
*/
readonly?: boolean | undefined;
/**
* Step factor to increment/decrement the value.
* @defaultValue 1
*/
step?: number | undefined;
/**
@ -46,31 +49,37 @@ export interface KnobProps {
max?: number | undefined;
/**
* Background of the value.
* @defaultValue var(--primary-color, Black)
*/
valueColor?: string | undefined;
/**
* Background color of the range.
* @defaultValue var(--surface-border, LightGray)
*/
rangeColor?: string | undefined;
/**
* Color of the value text.
* @defaultValue var(--text-color-secondary, Black)
*/
textColor?: string | undefined;
/**
* Width of the knob stroke.
* @defaultValue 100
* @defaultValue 14
*/
strokeWidth?: number | undefined;
/**
* Whether the show the value inside the knob.
* @defaultValue true
*/
showValue?: boolean | undefined;
/**
* Template string of the value.
* @defaultValue {value}
*/
valueTemplate?: string | undefined;
/**
* Index of the element in tabbing order.
* @defaultValue 0
*/
tabindex?: number | undefined;
/**