项目作者: angel-vladov

项目描述 :
IntelliJ jQuery templates
高级语言: JavaScript
项目地址: git://github.com/angel-vladov/idea-jquery-templates.git
创建时间: 2017-07-28T14:36:24Z
项目社区:https://github.com/angel-vladov/idea-jquery-templates

开源协议:

下载


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:

  1. var $example = $('#example').example();
  2. var exampleCtrl = $example.data('example');
  3. exampleCtrl.demo(1); // Calls method on the controller
  4. $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.