TypedRangeTextComponent<T>
A component that displays and edits a text-based value with a range.
Import:
import { TypedRangeTextComponent } from 'obsidian-dev-utils/obsidian/setting-components/typed-range-text-component';Signature:
export class TypedRangeTextComponent<T> extends TypedTextComponent<T>Extends: TypedTextComponent<T>
Properties
| Property | Type | Description |
|---|---|---|
| inputEl | HTMLInputElement | An input element of the component. (Inherited from TypedTextComponent) |
| textComponent | TextComponent | The inner text component. (Inherited from TypedTextComponent) |
Methods
| Method | Returns | Description |
|---|---|---|
| getValue() | T | Gets the value of the component. (Inherited from TypedTextComponent) |
| onChange(callback) | this | Sets the callback function to be called when the component is changed. (Inherited from TypedTextComponent) |
| onChanged() | void | Called when the component is changed. (Inherited from TypedTextComponent) |
| setDisabled(disabled) | this | Sets the disabled state of the component. (Inherited from TypedTextComponent) |
| setMax(max) | this | Sets the maximum value of the component. |
| setMin(min) | this | Sets the minimum value of the component. |
| setStep(step) | this | Sets the step value of the component. |
| setValue(value) | this | Sets the value of the component. (Inherited from TypedTextComponent) |
| valueFromString(str) | T | Converts a string to a value. (Inherited from TypedTextComponent) |
| valueToString(value) | string | Converts a value to a string. (Inherited from TypedTextComponent) |
Links to this page: