Ninja Pokémon Master

    metal-jquery-adapter

    2.0.0 • Public • Published

    metal-jquery-adapter

    A module that can create jQuery plugins for Metal.js components.

    Usage

    Just call JqueryAdapter.register with the jquery method name you want to use for the plugin and the component's constructor. For example:

    JqueryAdapter.register('modal', Modal);
     
    // Now you can call the plugin like this:
    $('#Modal').modal({headerContent: 'My Header'});
     
    // You can also call functions after initalizing the plugin for the first time:
    $('#Modal').modal('show');
     
    // And listen to events from the Metal.js component directly on the jQuery element:
    $('#Modal').on('metal-modal:buttonClicked', function(event, data) {
      console.log('Button was clicked: ', data.button);
    });

    Install

    npm i metal-jquery-adapter

    DownloadsWeekly Downloads

    69

    Version

    2.0.0

    License

    BSD

    Last publish

    Collaborators

    • tinycarol
    • edalgrin
    • pat270
    • liferay
    • bryceosterhaus
    • carloslancha
    • diegonvs
    • matuzalemteles
    • izaera
    • gagranta
    • p2kmgcl
    • marko.cikos
    • kresimircoko
    • jbalsas
    • brunobasto
    • rframpton
    • mairatma
    • eduardolundgren