# veams-component-toggler

> Represents a simple toggler with global event binding.

Latest version **5.1.0** (published 2018-01-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install veams-component-toggler
pnpm add veams-component-toggler
yarn add veams-component-toggler
bun add veams-component-toggler
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.1.0 |
| Published | 2018-01-02 |
| First published | 2017-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Andy Gutsche |
| Maintainers | andy-gutsche, sebastian-fitzner |
| Keywords | veams |

## Links

- npm: https://www.npmjs.com/package/veams-component-toggler
- Repository: https://github.com/Veams/veams-component-toggler
- Homepage: https://github.com/Veams/veams-component-toggler#readme
- Issues: https://github.com/Veams/veams-component-toggler/issues
- npm.io page: https://npm.io/package/veams-component-toggler

## Recent versions

- 5.1.0 (latest) — 2018-01-02
- 5.0.0 — 2017-09-29
- 4.0.2 — 2017-09-04

## README

<p align="right">
    <a href="https://badge.fury.io/js/veams-component-toggler"><img src="https://badge.fury.io/js/veams-component-toggler.svg" alt="npm version" height="18"></a>
    <a href="https://gitter.im/Sebastian-Fitzner/Veams?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge"><img src="https://badges.gitter.im/Sebastian-Fitzner/Veams.svg" alt="Gitter Chat" /></a>
</p>

# Toggler

 Represents a simple toggler with global event binding.

-----------

## Requirements
- `Veams >= v5.0.0` - Veams Framework.

-----------

## Installation

### Installation with Veams

`veams install vc toggler`

-------------

## SASS

### Variables

- $toggler-animation-duration-std {`String`} ['200ms'];
- $toggler-animation-easing-std {`Function`} [ease-in-out];

-------------

## Fields

### toggler

#### Settings

- settings.togglerContextClasses {`String`} [default] - _Context class._
- settings.togglerClasses {`String`} - _Modifier classes._
- settings.togglerJsOptions {`Object`} - _Options object which gets stringified._
- settings.togglerJsModule {`Boolean`} - _Specify if component is a Javascript module or not.
- settings.togglerJsModuleWithContext {`String`} - _Reference to specific Javascript module toggler context._
- settings.togglerId {`String`} - _Id to reference specific toggler component instance._
- settings.attributes {`Array`} - _List of attributes that consist of name value pairs._

#### Content

- content.togglerField {`String`} - _Add description._



-------------

## JavaScript Options

The module gives you the possibility to override default options:

- a11yFocusKeyClass {`String`} ['a11y-focus-key'] - _Class for the accessibility focus key._
- calculatingClass {`String`} ['is-calculating'] - _Class used to display calculating state._
- closeClass {`String`} ['is-closed'] - _Class when toggler is closed._
- context {`Boolean`} [false] - _Context property that gets passed to toggler open event._
- dataMaxAttr {`String`} ['data-js-height'] - _Dynamic max height attribute._
- globalEvent {`String`} [''] - _Reference to global event that when triggered calls toggle method._
- globalEventId {`String`} [''] - _Compare toggler's globaleventid with the globaleventid of the object that triggered the toggle method to determine if toggle should be run or aborted._
- openClass {`String`} ['is-open'] - _Class when toggler is open._
- setOverflow {`Boolean`} [false] - _Specify if overflow should be set or not._
- toggleTabindexElems {`String`} [''] - _Selector that targets elements to toggle tab-index._

-------------

---
_Source: https://npm.io/package/veams-component-toggler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
