Skip to content

[Feature] Usage of HTML5 data-* attributes for options #276

@andrepereiradasilva

Description

@andrepereiradasilva

A feature i think would be very useful for server side implementations would be to allow the usage of HTML5 data-* attributes to set the options directly in the HTML (without external or inline js), for instance:

<div id="sequence" data-key-navigation="1" data-auto-play-interval="500">
<!-- additional code removed for brevity -->
</div>

Or

<div id="sequence" data-options='{"keyNavigation":1,"autoPlayInterval":500}'>
<!-- additional code removed for brevity -->
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions