Skip to content

Option to use DOM elements instead of HTML strings as templates #885

@gyenabubakar

Description

@gyenabubakar

It would be nice to have the option to pass an HTML element to the template properties (like menuItemTemplate) instead of passing an HTML.

This would be nice for situations in which we have an already implemented UI component (in Svelte, Vue, or React) for the menu.

If this was possible, we wouldn't need to use noMatchTemplate for fallback as the UI component would handle that.

I'm new to this library so if this is already possible, kindly let me know. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions