You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `customResultHandler` config property expects a callback like the `axe.run()` callback ([see documentation](https://github.com/dequelabs/axe-core/blob/master/doc/API.md#parameters-axerun)). It will be triggered after each call to `axe.run()`.
40
40
@@ -52,6 +52,37 @@ if (process.env.NODE_ENV !== 'production') {
The `$axe` is available on the property injected into the Vue instance, so it is available everywhere in your application. With it it is possible to execute the `$axe.run` method to check manually your document or any desired HTMLElement.
57
+
58
+
```vue
59
+
<script>
60
+
//...
61
+
methods: {
62
+
axeRun() {
63
+
this.$axe.run({
64
+
clearConsole: false,
65
+
element: this.$el // e.g. document, document.querySelector('.selector'), ...
66
+
})
67
+
}
68
+
}
69
+
</script>
70
+
```
71
+
72
+
### Running custom axe plugins
73
+
Learn more about [axe plugin](https://github.com/dequelabs/axe-core/blob/master/doc/plugins.md)
0 commit comments