# @vagrantir/rc-device-targeting

> ## Project setup ``` npm i @vagrantir/rc-dropdown ```

Latest version **2.1.5** (published 2018-11-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @vagrantir/rc-device-targeting
pnpm add @vagrantir/rc-device-targeting
yarn add @vagrantir/rc-device-targeting
bun add @vagrantir/rc-device-targeting
```

## 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 | 2.1.5 |
| Published | 2018-11-08 |
| First published | 2018-10-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 2 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | vagrantir |
| Keywords | vue, components, style |

## Links

- npm: https://www.npmjs.com/package/@vagrantir/rc-device-targeting
- Repository: https://github.com/vagrantir/rc-device-targeting
- Homepage: https://github.com/vagrantir/rc-device-targeting#readme
- Issues: https://github.com/vagrantir/rc-device-targeting/issues
- npm.io page: https://npm.io/package/@vagrantir/rc-device-targeting

## Dependencies (9)

- [npm](https://npm.io/package/npm.md) ^6.4.1
- [vue](https://npm.io/package/vue.md) ^2.5.17
- [less](https://npm.io/package/less.md) ^3.8.1
- [svg-loader](https://npm.io/package/svg-loader.md) 0.0.2
- [less-loader](https://npm.io/package/less-loader.md) ^4.1.0
- [svg-url-loader](https://npm.io/package/svg-url-loader.md) ^2.3.2
- [vue-svg-loader](https://npm.io/package/vue-svg-loader.md) ^0.11.0
- [@vagrantir/rc-dropdown](https://npm.io/package/@vagrantir/rc-dropdown.md) ^1.1.6
- [@vue/web-component-wrapper](https://npm.io/package/@vue/web-component-wrapper.md) ^1.2.0

## Recent versions

- 2.1.5 (latest) — 2018-11-08
- 2.1.4 — 2018-11-08
- 2.1.3 — 2018-11-08
- 2.1.2 — 2018-11-08
- 2.1.0 — 2018-11-08
- 2.0.6 — 2018-11-07
- 2.0.5 — 2018-11-07
- 2.0.4 — 2018-11-07
- 2.0.3 — 2018-11-06
- 2.0.2 — 2018-11-06
- 2.0.1 — 2018-11-06
- 2.0.0 — 2018-11-06
- 1.0.13 — 2018-11-01
- 1.0.12 — 2018-11-01
- 1.0.11 — 2018-11-01
- … 15 more at https://npm.io/package/@vagrantir/rc-device-targeting/versions

## README

# rc-dropdown

## Project setup
```
npm i @vagrantir/rc-dropdown
```

### Using component

```javascript
import DeviceTargeting from './components/DeviceTargeting.vue';

Vue.component('DeviceTargeting', DeviceTargeting)
```

```html
<DeviceTargeting :value="targeting" :change="changeTargeting" :data-options="{disable_search: false}"/>
```

### Properties
```javascript
const props = {
                value: {
                  type: [Array],
                  default() {
                    return [];
                  },
                },
                targetings: {
                  type: [Array],
                  default() {
                    return [
                      {
                        value: 1,
                        name: 'Desktop',
                        oses: [],
                        enabled: true
                      },
                      {
                        value: 2,
                        name: 'Mobile',
                        oses: [
                          {
                            value: 3,
                            name: 'iOS',
                            versions: [],
                            enabled: true
                          },
                          {
                            value: 2,
                            name: 'Android',
                            versions: [],
                            enabled: true
                          },
                        ],
                        enabled: true
                      },
                      {
                        value: 3,
                        name: 'Tablet',
                        oses: [],
                        enabled: true
                      },
                    ];
                  },
                },
                settings: {
                  type: [Object],
                  default() {
                    return {
                    allOsText: 'All OS',
                    onlyOsText: 'Only {{name}}',
                    disabledHintText: 'Not allowed for editing',
                    allowMultipleOsSelection: false,
                    allowVersionSellection: false,
                    zeroEqualAll: true,
                    };
                  },
                },
                disabled: {
                  type: [Boolean],
                  default() {
                    return false;
                  },
                },
              }             

  ```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Run your unit tests
```
npm run test:unit
```

---
_Source: https://npm.io/package/@vagrantir/rc-device-targeting · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
