npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@arepa/time-range

v1.0.10

Published

Add a plugin description

Downloads

4

Readme

Nativescript TimeRange

@arepa/time-range

Instalation

npm install @arepa/time-range

Usage

Plain NativeScript

<Page xmlns:tr="@arepa/time-range">
    <StackLayout class="p-20">
      <tr:TimeRange width="100%" height="100%" drag="onDrag"/>
    </StackLayout>
</Page>
onDrag(ev) {
    console.log('onDrag ', ev.data);
  }

Nativescript Angular

import { NativeScriptTimeRangeModule } from '@arepa/time-range/angular';

//addd NativeScriptTimeRangeModule to angular NgModule>imports
@NgModule({
    imports: [
        NativeScriptTimeRangeModule,
    ],
})
<TimeRange (drag)="onDrag($event)"></TimeRange>
onDrag(ev) {
    console.log('onDrag ', ev.data);
  }

Properties

| Property | Type | Default value | Description | iOS | Android | | -------- | ---- | ------------- | ----------- | --- | ------- | | startTime | string | 00:00 | The time format is Hh:Mm, for example, 12:00. startTime defines the start time, it is not required.| ✓ | ✓ | | endTime | string | 00:00 | The time format is Hh:Mm, for example, 12:00. endTime defines the end time, it is not required.| ✓ | ✓ | | sliderColor | string | gray | sliderColor defines the background color of the slider. Default is gray.| ✓ | ✓ | | clockLabelColor | string | white | clockLabelColor defines the color of the numbers.| ✓ | ✓ | | clockTickColor | string | white | clockTickColor defines the color of the lines not numbers (in the case of Android, also the lines. iOS not have lines).| ❌ | ✓ | | maxDurationMinutes | number | 0 | Set the maximum selectable duration by providing minutes between 0 and 1440 | ❌ | ✓ | | sliderRangeColor | string | gray | The color of the active part of the slider wheel. | ✓ | ✓ | | thumbColor | string | gray | The background color of the thumbs. | ✓ | ✓ | | sliderRangeGradientStart | string | gray | Set the starting gradient color of the active part of the slider wheel. Please note that both sliderRangeGradientStart and sliderRangeGradientEnd need to be configured. | ❌ | ✓ | | sliderRangeGradientMiddle | string | gray | Optional for gradient: set the middle gradient color of the active part of the slider wheel. | ❌ | ✓ | | sliderRangeGradientEnd | string | gray | Set the ending gradient color of the active part of the slider wheel.Please note that both sliderRangeGradientStart and trp_sliderRangeGradientEnd need to be configured. | ❌ | ✓ | | timeStepMinutes | number | 0 | Determines at what interval the time should be rounded. Setting it to a less accurate number (e.g. 10 minutes) makes it easier for a user to select his desired time. | ❌ | ✓ | | clockVisible | boolean | true | Whether the clock face in the middle should be visible. | ✓ | ✓ | | clockLabelSize | number | 16 | Whether the clock face in the middle should be visibleThe text size of the hour labels in the clock (1, 2, 3, etc.). This value is recommended to be set as scale-independent pixels (sp). | ✓ | ✓ | | sliderWidth | number | 10 | The width of the slider wheel. | ✓ | ✓ | | thumbIconSize | number | 24 | The size of the thumb icons. | ❌ | ✓ | | thumbSize | number | 28 | The size of both the starting and ending thumb. | ✓ | ✓ | | thumbIconStartRes | string | null | Set the start thumb icon. | ✓ | ✓ | | thumbIconEndRes | string | null | Set the end thumb icon. | ✓ | ✓ | | clockFace | string | APPLE | There a two different clock faces (appearance of the inner clock) you can use, both mimicking the Clock apps: APPLE and SAMSUNG | ✓ | ✓ |