just our typical auto enhance-able component skeleton
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
component.js

README.md

Component

Filament Group

Just a simple auto-enhance-able component skeleton. It's not a widget factory, just for simple stuff.

Start by setting the componentName var to whatever the class name of your component happens to be (without the .). Then drop your typical logic into the each statement.

The script will auto-initialize your component whenever an enhance event is triggered on a parent element.

We typically add this to kick things off when the DOM is ready:

$( function(){ $( document ).trigger( "enhance" ); } );  

...and then trigger enhance on newly appended markup as well.