Socket
Socket
Sign inDemoInstall

@edgeworkscreative/st-press

Package Overview
Dependencies
0
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @edgeworkscreative/st-press

Adds the `onPress` event to your Stencil app. Press is recognized when the pointer is down for 251ms without any movement.


Version published
Maintainers
2
Created

Changelog

Source

<small>1.0.3 (2018-08-24)</small>

  • Initial commit (6fd8e39)
  • Rename HTMLAttributes interface to StencilGlobalHTMLAttributes (bb91c43)

Readme

Source

st-press

Adds the onPress event to your Stencil app. Press is recognized when the pointer is down for 251ms without any movement.

Add the following to your global-script.tsx file:

import '@edgeworkscreative/st-press';

example-component.tsx:

@Component({
  tag:      'example-component',
  styleUrl: 'example-component.scss',
  shadow:   true
})
export class ExampleComponent {

  onPress(e) {
    console.log('item was pressed', e);
  }
  
  render() {
    return [
      <ion-list lines={'full'}>
        <ion-item onPress={(e) => this.onPress(e)}>One</ion-item>
        <ion-item onPress={(e) => this.onPress(e)}>Two</ion-item>
        <ion-item onPress={(e) => this.onPress(e)}>Three</ion-item>
      </ion-list>
    ];
  }
}

Keywords

FAQs

Last updated on 24 Aug 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc