import FocusTrap from 'primevue/focustrap';
app.directive('focustrap', FocusTrap);
<script src="https://unpkg.com/primevue@^3/core/core.min.js"></script>
<script src="https://unpkg.com/primevue@^3/focustrap/focustrap.min.js"></script>
directives: {
'focustrap': FocusTrap
}
FocusTrap is applied to a container element with the v-focustrap directive.
<div v-focustrap>
//content
</div>
Name | Type | Default | Description |
---|---|---|---|
disabled | boolean | false | When set as true, focus wouldn't be managed. |
Directive has no events.
None.