Sequence icon indicating copy to clipboard operation
Sequence copied to clipboard

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

Open andrepereiradasilva opened this issue 9 years ago • 0 comments

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>

andrepereiradasilva avatar Dec 16 '15 16:12 andrepereiradasilva