ztechno_core
TypeScript icon, indicating that this package has built-in type declarations

0.0.59 • Public • Published

ztech_jquery_ext

Extends JQuery library for more compact code base

npm version

Requirements

Installation

npm install ztech_jquery_ext
yarn add ztech_jquery_ext
<link href="https://cdn.jsdelivr.net/npm/ztech_jquery_ext/dist/css/ztech_jquery_ext.min.css" rel="stylesheet" type="text/css" />
<script src="https://cdn.jsdelivr.net/npm/ztech_jquery_ext/dist/js/ztech_jquery_ext.min.js" type="text/javascript"></script>
<link href="https://unpkg.com/ztech_jquery_ext/dist/css/ztech_jquery_ext.min.css" rel="stylesheet" type="text/css" />
<script src="https://unpkg.com/ztech_jquery_ext/dist/js/ztech_jquery_ext.min.js" type="text/javascript"></script>

TypeScript Support

In order to include types add the following in tsconfig.json

{
  "compilerOptions": {
    "types": ["ztech_jquery_ext"]
  }
}

Alternatively Add the following reference at the top of the javascript/typescript file

/// <reference types="ztech_jquery_ext" />

Usage

Include jQuery

<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>

Include Plugin JS

<script src="https://cdn.jsdelivr.net/npm/ztech_jquery_ext/dist/js/ztech_jquery_ext.min.js" type="text/javascript"></script>

Usage

// [JQuery, JQuery, JQuery, ...]
var rows = $('.row').$arr();

// [number, number, number, ...]
var userids = $('.user').$map(function ($ele) {
  return $ele.attr('id');
});

License

MIT

Created with ❤️ create-jquery-plugin

Package Sidebar

Install

npm i ztechno_core

Weekly Downloads

0

Version

0.0.59

License

MIT

Unpacked Size

34.5 kB

Total Files

25

Last publish

Collaborators

  • magiichan