Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

swipeable-cell

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swipeable-cell

A Vue.js project

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
Source

swipeable-cell

A swipe cell imitate iOS style

1. installation

npm install swipeable-cell -S

2. how to use

  1. import component in your project.
improt SwipeableCell from 'swipeable-cell'
  1. add to your component
<swipeable-cell v-for="(item, index) in dataList", 
                :key="index", 
                :index="index",
                @swipeable-cell-delete="deleteItem">
  // ... your cell container dom
</swipeable-cell>
  1. in your component's methods
export default {
    ...
  	methods: {
  		// index: you just tapped cell
    	deleteItem(index) {
  			// remove from you list.
  			this.splice(index, 1);
		}
	}
}

features

  • supporting automatally fit your cell content's height.
  • supporting embedded in pulling refresh component.

if you like it, I'm warmly welcome your PR and issues. ❤️

FAQs

Package last updated on 04 Oct 2018

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc