diff --git a/README.md b/README.md index f2291e6..90cdc40 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,8 @@ And | `tooltip` | String | If not used, tooltip won't appear. | | `color` | String | Default `bg-color` value
Accepts all color formats: HEX, RGB & RGBA | +When no action is passed, or an empty array, you can specify a `@action` binding to execute a single action on click. + ## Examples Include the component in your .vue file, `actions` prop is required for the component to work. The `@event` has to match the name given in the `actions` prop. diff --git a/demo/App.vue b/demo/App.vue index 6457257..a0b0c70 100644 --- a/demo/App.vue +++ b/demo/App.vue @@ -160,10 +160,16 @@ -