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

fb-msg-slide

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fb-msg-slide

A slide component with extra actions built with StencilJS

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Built With Stencil Open Source Love svg1

Facebook Messenger Slide Component Build Status npm version

A slide component with extra actions built with StencilJS

Getting Started

to use this component inside your project run the follwing command

npm install --save fb-msg-slide

To view the build, start an HTTP server inside of the /www directory.

npm install
npm start

To build the component for production, run:

npm run build

To run the unit tests for the components, run:

npm test

Need help? Check out our docs here.

Using this component

Script tag

Put this script <script src='https://unpkg.com/my-component@0.0.1/dist/mycomponent.js'></script> in the head of your index.html

   <fb-msg-slide>
      <div slot="item-start" >
       <span class="fa fa-eye"></span>

      </div>
      <div slot="item-middle" class="_middle" >
        <img src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" alt="">
       <p><strong>M.John</strong><br>Lorem ipsum dolor sit.</p>
      </div>
      <div slot="item-end" >
        <span class="fa fa-trash"></span>
      </div>
    
    
      </fb-msg-slide>

Node (ionic)

register component in main.ts


//main.ts
import { defineCustomElements } from 'fb-msg-slide/loader';

//...

defineCustomElements()

add CUSTOM_ELEMENTS_SCHEMA to your module

//yourmodule.ts
//...

 schemas: [CUSTOM_ELEMENTS_SCHEMA]

use it !

<fb-msg-slide>
       <div slot="item-start">
           <!-- element -->
       </div>
       <fb-msg-slide>
       <div slot="item-middle">
           <!-- element -->
       </div>
       <fb-msg-slide>
       <div slot="item-end">
           <!-- element -->
       </div>
  </fb-msg-slide>

License

MIT © Abdelhak Akermi

Keywords

FAQs

Package last updated on 25 Mar 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

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