# nativescript-slider-test

> A fork of nativescript slider with event changedFromUser

Latest version **1.0.0-test** (published 2016-08-24) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install nativescript-slider-test
pnpm add nativescript-slider-test
yarn add nativescript-slider-test
bun add nativescript-slider-test
```

## 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 | 1.0.0-test |
| Published | 2016-08-24 |
| First published | 2016-08-24 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | habib Kazemi |
| Maintainers | kazemihabib |
| Keywords | NativeScript, JavaScript, Android, iOS, slider |

## Links

- npm: https://www.npmjs.com/package/nativescript-slider-test
- Repository: https://github.com/kazemihabib/nativescript-slider
- Issues: https://github.com/kazemihabib/nativescript-slider/issues
- npm.io page: https://npm.io/package/nativescript-slider-test

## Alternatives

- [adhdev](https://npm.io/package/adhdev.md) — 11.1K weekly downloads
- [react-slide-button](https://npm.io/package/react-slide-button.md) — 310 weekly downloads
- [better](https://npm.io/package/better.md) — 42 weekly downloads
- [react-native-swipe-image](https://npm.io/package/react-native-swipe-image.md) — 22 weekly downloads
- [nl.fokkezb.pulltorefresh](https://npm.io/package/nl.fokkezb.pulltorefresh.md) — 11 weekly downloads

## Recent versions

- 1.0.0-test (latest) — 2016-08-24

## README

# Nativescript Slider
  It's a fork of https://github.com/NativeScript/NativeScript/tree/master/tns-core-modules/ui/slider (tns core module) with dragged event.

## What's the difference?
    Added dragged event that fires when the user drags the slider.
    currently this event added just for android.
    
## Why should I use this event when I can use two-way binding for value property of slider?
    It is usefull when the value can change programmatically and by user for example when creating player.

## Installation
    
    tns plugin add nativescript-slider

## Usage
    
    <Page xmlns="http://schemas.nativescript.org/tns.xsd"
      xmlns:seekbar="nativescript-slider"
      loaded="pageLoaded">
      <StackLayout>
        <seekbar:Slider value="50" maxValue="100" dragged="{{dragged}}" />
      </StackLayout>
    </Page>

    dragged(args){
       let newValue = args.newValue;
       let object = args.object;
    }
    
## How to use with Angular2

    import {registerElement} from "nativescript-angular/element-registry";
    
    registerElement("TNSSlider", () => require("nativescript-slider").Slider);
    
    <TNSSlider [value]="currentPosition" [maxValue]="movieLength" (dragged)="fromUser($event)"  ></TNSSlider>

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