diff --git a/README.md b/README.md index d900d5e..4e55126 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ screen shot 2018-03-01 at 10 33 39 - + ### Vue.js 2 toggle / switch button - simple, pretty, customizable. ![Imgur](http://i.imgur.com/a2Hf7pm.png) @@ -33,12 +33,12 @@ Use: - - ``` @@ -61,6 +61,7 @@ import ToggleButton from 'vue-js-toggle-button/src/Button' | switchColor | [String, Object] | `#BFCBD9` | If `String` - color or background property of the switch when checked
If `Object` - colors or background property for the switch when checked/uncheked
Example: `{checked: '#25EF02', unchecked: 'linear-gradient(red, yellow)'}` | | width | Number | 50 | Width of the button, default is 50 | | height | Number | 22 | Height of the button, default is 22 | +| name | String | undefined | Name to attach to the generated input field | `labels` object accepts HTML text (for example, you can use FontAwesome for checked/unchecked states). diff --git a/demo/src/App.vue b/demo/src/App.vue index 11739fb..3430050 100644 --- a/demo/src/App.vue +++ b/demo/src/App.vue @@ -12,6 +12,7 @@ @@ -34,7 +35,7 @@ :color="{unchecked: '#FF6699'}" :labels="{unchecked: 'Disabled button'}" :disabled="true"/> - +
@@ -53,6 +54,9 @@ export default { type: Boolean, default: false }, + name: { + type: String + }, sync: { type: Boolean, default: false