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

nativescript-n6-color-wheel

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-n6-color-wheel

Your awesome NativeScript plugin.

1.0.5
latest
Source
npm
Version published
Weekly downloads
6
Maintainers
1
Weekly downloads
 
Created
Source

NativeScript Color Wheel

This plugin is tend to be used within NativeScript 6 version.

Correspondent {N}7 version is @sergeymell/nativescript-color-wheel

Description

This plugin is actually a color picker plugin which can be used as a simple component wherever you need it. It allows you to

  • pick a color by clicking appropriate position on the color wheel
  • render whatever UI as a picker icon customizing it on your own needs
  • set an initial color for the plugin
  • put the color picker wherever you need it as long it's just a custom element.

Plugin works simultaneously for both iOS and Android platforms and is not based on any additional libraries, CocoaPods etc

Examples

Color wheel with custom selection pickerColor picker in a modal dialog

Installation

ns plugin add nativescript-n6-color-wheel

Usage

In NativeScript Core applications:

<clw:ColorWheel width="200" height="200" color="#FFB35E"
                            colorSelect="{{colorSelected}}"/>

In NativeScript Angular applications:

  • Add NativeScriptColorWheelModule from nativescript-n6-color-wheel/angular to the imports section of your Angular module
  • Use the ColorWheel component where you need it
<ColorWheel width="200" height="200" margin="20"
                  (colorSelect)="onColorSelected($event)"></ColorWheel>

TODOs:

  • optimize the algorithm of initial color location determination
  • make color brightness configurable (at least for Android)
  • add support of other color selection area forms (i.e. square)

License

Apache License Version 2.0

Keywords

NativeScript

FAQs

Package last updated on 01 Nov 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