tram-lite
tram-lite copied to clipboard
Make shadowDOM options (like delegatesFocus) optional
Summary
We should make the delegatesFocus (and potentially all other future options for components) optional, and part of the interface in the tl-definition
.
This would look something like:
<template tl-definition tl-options="delegatesFocus">
<!-- component definition -->
</template>
Alternatively, we could have dedicated attributes for the options (like tl-delegatesfocus
).
In addition to this, we should have these as options for the export, and import (where the template tag won't be used).