forked from jquerytools/www
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathedit.html
More file actions
50 lines (33 loc) · 1.36 KB
/
edit.html
File metadata and controls
50 lines (33 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<%-- :mode=jsp: --%>
<%@ include file="../header.jsf" %>
<link rel="stylesheet" type="text/css" href="${cdn}${jqt}/css/scrollable-horizontal.css" />
<link rel="stylesheet" type="text/css" href="${cdn}${jqt}/css/scrollable-buttons.css" />
<link rel="stylesheet" type="text/css" href="${cdn}${jqt}/css/scrollable-navigator.css" />
<p>
This demo shows you how to add and remove scrollable items. Notice how the scrollable navigator grows and the next/prev buttons behave correctly.
</p>
<div style="margin:20px -15px;">
<%@ include file="edit.htm" %>
</div>
<br />
<p>
You can add items to a circular scrollable as well. This page's source code is identical to the <a href="index.html">minimal setup</a> except that the add and remove buttons were added.
</p>
<h3>A new item</h3>
<p>
The item we are adding is the child element of <samp>DIV#newItem</samp>:
</p>
<pii:code lang="html">
${html}
</pii:code>
<h3>addItem function</h3>
<p>
Every added item is a <samp>clone</samp> of a single DIV. We use <samp>addItem</samp> method from the <a href="${jqt}/scrollable/index.html#api">Scrollable API</a> to add new items. It takes one argument which is the new item.
</p>
<pii:code>${actions}</pii:code>
<div class="box petrol">
Show this demo as a <a href="edit.htm">standalone page</a>.
</div>
<p>
<a href="${jqt}/credits.html" id="credits">Photo credits »</a>
</p>