eurostar-popup v1.0.31
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=sassUsage
Change
package.jsonfile andjspmconfig file (usuallyjspm.config.jsorconfig.js) to ensure that the mapping to Magnific Popup is correct"magnificPopup": "github:dimsemenov/Magnific-Popup@<version>",Install module
$ jspm install npm:eurostar-popupImport the styles into your main
scssfile@import "jspm:eurostar-popup/popup";Note the naming convention:
jspm:<pkg-name>/<pkg-scss-file>;Import the
javascriptfile 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. usinggulp).import Popup from 'eurostar-popup';This imports the
Popupclass from thepopup.jsfile.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.twig9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago