Skip to content

Immediate–Invoked–Data–Expressions (IIDE) for jQuery Methods & Plugins

Notifications You must be signed in to change notification settings

ixisio/jquery-iide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery IIDE

Immediate–Invoked–Data–Expressions (IIDE) for jQuery Methods & Plugins

Inspired by this blogpost by @toddmotto I wrote this simple jQuery plugin to invoke any jQuery.fn or jQuery.plugin method via HTML5 data attributes. The goal is to make it more comfortable to init plugins right on its corresponding DOM element.

Read more about the theory here: IIDE, Immediate-Invoked-Data-Expressions, data-init and using HTML5 to call your JavaScript/jQuery. I'm also write a blog post soon about this, be patient.

Example

<div 
    data-init="animate" 
    data-options='[
    { 
        "right": 800,
        "top": 0
    }, 5000 ]'>
</div>

Check out the examples for more details.

About

Immediate–Invoked–Data–Expressions (IIDE) for jQuery Methods & Plugins

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published