Skip to content

Option to use original DOM elements instead of clones #339

@jigarius

Description

@jigarius

Expected Behavior

Sometimes, people create a hidden DIV element with menu content and expect that entire DIV to be used in the sidr exactly as-is because they have JavaScript events and other complex things attached to the original DIV.

Current Behavior

There is no way an original DOM element can be included in the sidr. A copy of the original element is always created, with an option of renaming IDs.

Possible Solution

Provide an option named noCopy or useOriginal or appendSource which when set to true should make Sidr get items found by the source jQuery selector and append those original elements in to the sidr element.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions