bootstrap-lightbox

WebJar for bootstrap-lightbox

Лицензия

Лицензия

Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

bootstrap-lightbox
Последняя версия

Последняя версия

0.7.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

bootstrap-lightbox
WebJar for bootstrap-lightbox
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/jbutz/bootstrap-lightbox

Скачать bootstrap-lightbox

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bower/bootstrap-lightbox/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>bootstrap-lightbox</artifactId>
    <version>0.7.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/bootstrap-lightbox/
implementation 'org.webjars.bower:bootstrap-lightbox:0.7.0'
// https://jarcasting.com/artifacts/org.webjars.bower/bootstrap-lightbox/
implementation ("org.webjars.bower:bootstrap-lightbox:0.7.0")
'org.webjars.bower:bootstrap-lightbox:jar:0.7.0'
<dependency org="org.webjars.bower" name="bootstrap-lightbox" rev="0.7.0">
  <artifact name="bootstrap-lightbox" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='bootstrap-lightbox', version='0.7.0')
)
libraryDependencies += "org.webjars.bower" % "bootstrap-lightbox" % "0.7.0"
[org.webjars.bower/bootstrap-lightbox "0.7.0"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.bower : jquery jar [1.7.1,)
org.webjars.bower : bootstrap jar [3,)

Модули Проекта

Данный проект не имеет модулей.

THIS PLUGIN IS NO LONGER BEING MAINTAINED. IF SOMEONE ELSE WANTS TO MAINTAIN IT FEEL FREE TO FORK THE REPO.

Bootstrap - Lightbox Build Status

This is a plugin for Twitter Bootstrap that adds a lightbox that is based off the modal dialog

Quick start

You have several options. You can clone the repository git clone git://github.com/jbutz/bootstrap-lightbox.git, grab an archive, or use cdnjs.

Once you have the files include the CSS and JavaScript files in your page and then give the example code below a shot.

Example

<a data-toggle="lightbox" href="#demoLightbox">Open Lightbox</a>
<div id="demoLightbox" class="lightbox fade"  tabindex="-1" role="dialog" aria-hidden="true">
	<div class='lightbox-dialog'>
		<div class='lightbox-content'>
			<img src="image.png">
			<div class='lightbox-caption'>
				Your caption here
			</div>
		</div>
	</div>
</div>

Usage

Via data attributes

All you need to do is add data-toggle="lightbox" and href="#lightbox" or data-target="#lightbox" to a link, and set the href so it references the lightbox you want to display.

<a data-toggle="lightbox" href="#demoLightbox">Open Lightbox</a>

Via JavaScript

Open the lightbox with the id myLightbox.

$('#myLightbox').lightbox(options)

Options

Name Type Default Description
backdrop boolean true This adds a modal-backdrop element.
keyboard boolean true Pressing escape closes the lightbox.
show boolean true Shows the lightbox when initialized.
Note: This only applies when using JavaScript to setup the lightbox.
resizeToFit boolean true This resizes the image to fit the window if the image is too large.

Версии библиотеки

Версия
0.7.0