Document slider
This commit is contained in:
parent
1b0427e943
commit
2d6654b234
1 changed files with 9 additions and 0 deletions
|
|
@ -111,6 +111,15 @@ export const sliderPlugin = ViewPlugin.fromClass(
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Displays a slider widget to allow the user manipulate a value
|
||||||
|
*
|
||||||
|
* @name slider
|
||||||
|
* @param {number} value Initial value
|
||||||
|
* @param {number} min Minimum value
|
||||||
|
* @param {number} max Maximum value
|
||||||
|
* @param {number} step Step size
|
||||||
|
*/
|
||||||
export let slider = (value) => {
|
export let slider = (value) => {
|
||||||
console.warn('slider will only work when the transpiler is used... passing value as is');
|
console.warn('slider will only work when the transpiler is used... passing value as is');
|
||||||
return pure(value);
|
return pure(value);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue