README.md in savio-0.1.3 vs README.md in savio-0.1.4

- old
+ new

@@ -101,23 +101,29 @@ | Method | Description | |--|--| |.moveKnob(**x**) | Moves the knob to that **x** pixel location on the screen and finds and sets equivalent value for the slider | |.setValue(**value**)|Sets the sliders value to that value and moves the knob there (same as .value=)| | .value = **value** | Sets the sliders value to that **value** and moves the knob there (same as .setValue)| +|.onChange| Calls the given proc any time the sliders **value** is updated(see basic usage)| ### Basic Usage: if slippyTheSlider.value == 69 puts "nice" end +----- + + slippyTheSlider.onChange do + puts "Value Changed! new value is: " + slippyTheSlider.value.to_s + end + # | Buttons: **On top of** all the basic parameters and methods a **Button** can **also** use these: ### Params: | Variable | Description | Default | |--|--|--| -|value | Anything you want to be tied to the button | 0 |selected | Whether the button is selected or not | false |type | Whether the button will act normally('toggle') or instantly deselect itself('clicker') | 'toggle' |style|'box' or 'badge'. Determines the style the button should be rendered with| 'badge' |length|Only used for the 'box' style. Determines the length of the button| @size * 10 |height|Only used for the 'box' style. Determines the height of the button| @size * 1.2