Commit c236180b authored by NickWilde's avatar NickWilde

git commit -m 'Issue #2882244 by Adrian83, NickWilde: Add className support to colorbox inline'

parent 8a72c9e5
CONTENTS OF THIS FILE
---------------------
* Introduction
* Requirements
* Installation
......@@ -27,8 +27,11 @@ To create an element which opens the colorbox on click:
Add a the attribute data-colorbox-inline to an element and make it's value a
selector for the content you wish to open.
Eg, <a data-colorbox-inline=".user-login">User Login</a>.
Optional add data-width and data-height to the anchor to control the size of the
modal window.
Optional extra configuration you can add:
- `data-width` and `data-height` to the anchor to control the size of the
modal window.
- `data-class` to add a class to the colorbox wrapper.
INSTALLATION
......@@ -51,3 +54,4 @@ MAINTAINERS
Current maintainers:
* Sam Becker (Sam152) - https://www.drupal.org/user/1485048
* Renato Gonçalves (RenatoG) - https://www.drupal.org/user/3326031
* Nick Wilde (NickWilde) - https://www.drupal.org/u/nickwilde
......@@ -11,6 +11,7 @@
href: false,
inline: true
}, {
className: $link.data('class'),
href: $link.data('colorbox-inline'),
width: $link.data('width'),
height: $link.data('height')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment