1.0.22 • Published 2 years ago

plugin_modal_p14 v1.0.22

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Built With

This section should list any major frameworks/libraries used to bootstrap your project. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.

  • React

Installation

npm install --save plugin_modal_p14

Usage

Import the element inside the component you want, import useEffect from react

The openModal function will open the modal for you

Exemple:

import Modal from 'plugin_modal_p14'
import { useEffect } from 'react'

function Yourfunction() {
  useEffect(() => {
    let containerModal = document.getElementById('containerModal');
    containerModal.style.display = 'none';
  }, []);

  const openModal = () => {
    let containerModal = document.getElementById('containerModal');
    containerModal.style.display = 'block';
  }

  return (
    <div>
      <Modal text={"text will be display"}/>
      <button onClick={() => openModal()}>Open modal</button>
    <div>
  )
}

Contact

Thomas Robveille - Thomasrobveille@gmail.com

Plugin Modal Project 14: https://github.com/ThomasRobveille/plugin_modal_p14

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.0

3 years ago