@lahautesociete/jquery-component

1.1.2 • Public • Published

lhs-component

jQuery component template

Install

npm install @lahautesociete/jquery-component --save

Examples

$('.ExampleComponent').component({

    /**
     * Bind nodes
     */
    nodes: function() {

    },

    /**
     * Bind events
     */
    events: function() {

    },

    /**
     * Initialize
     */
    init: function() {

    }

});

How it works

Every component is self-instanced by the lhs-component lib. It automatically runs nodes(), then events() and then init() methods. These methods can be removed if they are empty.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.2
    2

Package Sidebar

Install

npm i @lahautesociete/jquery-component

Weekly Downloads

2

Version

1.1.2

License

MIT

Last publish

Collaborators

  • lahautesociete