Skip to content

angel-vladov/idea-jquery-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

idea-jquery-templates

jQuery live templates for IntelliJ IDEA and Webstorm. All templates are ECMAScript 5 compliant.

Installation

Download settings.jar and import it using File->Import Settings.

Available templates

List with available templates abbreviations:

  • jqapp - Generates a jQuery app module
  • jqpluginp - Creates a prototypical jQuery plugin

jqapp

Entry point for your jQuery app. You can add appwide configurations and methods.

jqpluginp

Creates a prototypical jQuery plugin with a controller. The controller will be exposed in data.
If you need to call a method you can either get the controller or use data.

Example:

var $example = $('#example').example();
var exampleCtrl = $example.data('example');

exampleCtrl.demo(1); // Calls method on the controller
$example.data('demo', 1); // Calls the same method on the controller

Importing settings from a JAR archive

  • Choose File. | Import Settings from the main menu.
  • In the Import File Location dialog box that opens select the desired archive.
  • In the Select Components to Import dialog box that opens specify the settings to be imported, and click OK. By default, all settings are selected.

About

IntelliJ jQuery templates

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published