New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pluginjs/arrows

Package Overview
Dependencies
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pluginjs/arrows

A flexible modern arrows js plugin.

  • 0.7.22
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-64%
Maintainers
2
Weekly downloads
 
Created
Source

Arrows

npm package

A flexible modern arrows js plugin.

Samples

Introduction

Installation

Yarn
yarn add @pluginjs/arrows
NPM
npm i @pluginjs/arrows

Getting Started

CDN:

Development:

<script src="https://unpkg.com/@pluginjs/arrows/dist/arrows.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@pluginjs/arrows/dist/arrows.css">

Production:

<script src="https://unpkg.com/@pluginjs/arrows/dist/arrows.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@pluginjs/arrows/dist/arrows.min.css">

Initialize

HTML:

<div class="element"></div>

ECMAScript Module:

import Arrows from "@pluginjs/arrows"
import "@pluginjs/arrows/dist/arrows.css"

Arrows.of(document.querySelector('.element'), options)

CommonJS:

require("@pluginjs/arrows/dist/arrows.css")
const Arrows = require("@pluginjs/arrows")

Arrows.of(document.querySelector('.element'), options)

Browser:

<link rel="stylesheet" href="https://unpkg.com/@pluginjs/arrows/dist/arrows.css">
<script src="https://unpkg.com/@pluginjs/arrows/dist/arrows.js"></script>
<script>
  Pj.arrows('.element', options)
</script>

API

Options

Options are called on arrows instances through the arrows options itself. You can also save the instances to variable for further use.

NameDescriptionDefault
"theme"Add plugin theme optionnull
"prev"Add value of prev button{"href":"#","text":"Previous"}
"next"Add value of next button{"href":"#","text":"Next"}
"direction"Set plugin initial directionhorizontal
"valueFrom"Set where is value fromhref
"templates"Arrows default templates{}

Events

Events are called on arrows instances through the arrows events itself. You can also save the instances to variable for further use.

NameDescription
"ready"Gets fired when plugin is ready
"enable"Gets fired when plugin is enabled
"disable"Gets fired when plugin is disabled
"destroy"Gets fired when plugin is destroy
"next"Gets fired when next button has be click
"prev"Gets fired when prev button has be click
"show"Gets fired when plugin is show
"hide"Gets fired when plugin is hide

Methods

Methods are called on arrows instances through the arrows method itself. You can also save the instances to variable for further use.

NameDescription
"enable"Enabled plugin if plugin is disabled
"disable"Disable plugin
"destroy"Destroy plugin
"build"Build arrows element
"load"Load arrows element
"next"Active next event
"prev"Active prev event
"show"Show plugin if it is hiden
"hide"Hide plugin

Classes

Name | Description | Default --|| "NAMESPACE" | Declare plugin namespace | pj-arrow "CONTAINER" | Declare plugin range | {namespace}s "THEME" | Declare plugin theme | {namespace}s--{theme} "PREV" | Declare prev element | {namespace}-prev "NEXT" | Declare next element | {namespace}-next "VERTICAL" | Declare plugin direction is vertical | {namespace}s-vertical "HORIZONTAL" | Declare plugin direction is horizontal | {namespace}s-horizontal "ACTIVE" | Announce plugin is actived | {namespace}-active "DISABLED" | Announce plugin is disabled | {namespace}-disabled "HIDDEN" | Announce plugin is hidden | {namespace}-hidden

Browser support

Tested on all major browsers.

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Opera
Opera
IE11, Edgelast 2 versionslast 2 versionslast 2 versionslast 2 versions

License

@pluginjs/arrows is Licensed under the GPL-v3 license.

If you want to use @pluginjs/arrows project to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary.

For purchase an Commercial License, contact us purchase@thecreation.co.

Copyright (C) 2018 Creation Studio Limited.

FAQs

Package last updated on 15 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc