split-pane

WebJar for split-pane

Лицензия

Лицензия

MIT
Группа

Группа

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

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

split-pane
Последняя версия

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

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

split-pane
WebJar for split-pane
Ссылка на сайт

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

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

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

https://github.com/shagstrom/split-pane

Скачать split-pane

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

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

Зависимости

compile (1)

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

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

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

split-pane

jQuery Split Pane plugin

The plugin should work in IE8 and above as well as in Chrome, Safari and Firefox.

You can download split-pane.js and split-pane.css manually to you project or you can install with npm:

npm install split-pane

Split panes are initiated with

$(selector).splitPane();

Split pane component min-height and min-width are supported, and the component size can be set programmatically with

$(selector).splitPane('firstComponentSize', 0);"

or

$(selector).splitPane('lastComponentSize', 100);"

Only pixel values are supported.

Below is a basic example on how to use the plugin. Check out my blog post for some prettier examples.

You need to set up component widths and divider position using css, not as options to the JS splitPane function. The reason for this is that I like things to look good even before the JavaScript kicks in.

<!DOCTYPE html>
<html>
  <head>
		<title>Basic Example</title>
		<link rel="stylesheet" href="split-pane.css" />
		<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
		<script src="split-pane.js"></script>
		<style type="text/css">
			html, body {
				height: 100%;
				min-height: 100%;
				margin: 0;
				padding: 0;
			}
			.split-pane-divider {
				background: #aaa;
			}
			#left-component {
				width: 20em;
			}
			#my-divider {
				left: 20em; /* Same as left component width */
				width: 5px;
			}
			#right-component {
				left: 20em;  /* Same as left component width */
				margin-left: 5px;  /* Same as divider width */
			}
		</style>
		<script>
			$(function() {
				$('div.split-pane').splitPane();
			});
		</script>
	</head>
	<body>
		<div class="split-pane fixed-left">
			<div class="split-pane-component" id="left-component">
				This is the left component
			</div>
			<div class="split-pane-divider" id="my-divider"></div>
			<div class="split-pane-component" id="right-component">
				This is the right component
                <button onclick="$('div.split-pane').splitPane('firstComponentSize', 0);">Collapse first component</button>
			</div>
		</div>
	</body>
</html>

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

Версия
1.0.0
0.9.4
0.9.2
0.5.1
0.5.0