Skip to content

Commit

Permalink
fix: enhance #slider with better screen reader number format API
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Dec 3, 2020
1 parent 2206bbc commit d85438c
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ showTabs: true

## Events

| Events | Description |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `on_change` | _(optional)_ will be called on state changes made by the user. The callback `value` and `rawValue` is a number `{ value, rawValue, event }`. But if the prop `number_format` is given, then it will return a string with the given format. |
| `on_init` | _(optional)_ will be called once the component is ready to use. The callback `value` is a number `{ value }`. |
| `on_drag_start` | _(optional)_ will be called once the user stops dragging. Returns `{ event }`. |
| `on_drag_end` | _(optional)_ will be called once the user starts dragging. Returns `{ event }`. |
| Events | Description |
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `on_change` | _(optional)_ will be called on state changes made by the user. The callback `value` and `rawValue` is a number `{ value, rawValue, event }`. But if the prop `number_format` is given, then it will return an additional `number` with the given format `{ value, number, rawValue, event }`. |
| `on_init` | _(optional)_ will be called once the component is ready to use. The callback `value` is a number `{ value }`. |
| `on_drag_start` | _(optional)_ will be called once the user stops dragging. Returns `{ event }`. |
| `on_drag_end` | _(optional)_ will be called once the user starts dragging. Returns `{ event }`. |
Loading

0 comments on commit d85438c

Please sign in to comment.