1.0.31 • Published 8 years ago

eurostar-popup v1.0.31

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

Eurostar Popup

Component to show information within a popup/modal

Before installation

It is presumed that you have jspm and npm installed on your machine globally and within your project.

You must also install plugin-sass installed to ensure sass imports work. You can install by running the following command:

$ jspm install scss=sass

Usage

  1. Change package.json file and jspm config file (usually jspm.config.js or config.js) to ensure that the mapping to Magnific Popup is correct

    "magnificPopup": "github:dimsemenov/Magnific-Popup@<version>",
  2. Install module

    $ jspm install npm:eurostar-popup
  3. Import the styles into your main scss file

    @import "jspm:eurostar-popup/popup";

    Note the naming convention: jspm:<pkg-name>/<pkg-scss-file>;

  4. Import the javascript file into your main file (refer to http://jspm.io/docs/getting-started.html for bundling packages. However, this should be written in a task, e.g. using gulp).

    import Popup from 'eurostar-popup';

    This imports the Popup class from the popup.js file.

  5. To initialise the Popup, use the following code:

    let popup = new Popup('.myClassName');

Typical package structure

  /component-name@<version-number>
    component-name.html.twig
    component-name.scss
    component-name.js
    component-name.json
    index.html.twig
1.0.31

8 years ago

1.0.30

8 years ago

1.0.29

8 years ago

1.0.28

8 years ago

1.0.27

8 years ago

1.0.26

8 years ago

1.0.26-alpha.1

8 years ago

1.0.25

9 years ago

1.0.24

9 years ago

1.0.23

9 years ago

1.0.22

9 years ago

1.0.21

9 years ago

1.0.20

9 years ago

1.0.19

9 years ago

1.0.18

9 years ago

1.0.17

9 years ago

1.0.16

9 years ago

1.0.15

9 years ago

1.0.14

9 years ago

1.0.13

9 years ago

1.0.12

9 years ago

1.0.11

9 years ago

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago