Viewing File: /usr/local/cpanel/3rdparty/share/angular-ui-scroll/1.6.1/demo/listScroller/listScroller.html

<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title>li based scrollable list</title>
	<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular.js"></script>
	<script src="../../dist/ui-scroll.js"></script>
	<script src="listScroller.js"></script>
	<link rel="stylesheet" href="../css/style.css" type="text/css"/>
</head>
<body ng-app="application">

	<div class="cont cont-global">

		<a class="back" href="../index.html">browse other examples</a>

		<h1 class="page-header page-header-exapmle">li based scrollable list</h1>

		<div class="description">
			Since html container with ui-scroll attribute is repeatable there are some ways to build a template.
			This sample demonstrates list based (&lt;li&gt;) template usage.

			<div class="code">
				<pre>
&lt;ul ui-scroll-viewport&gt;
	&lt;li ui-scroll="item in datasource"&gt;*{{item}<!---->}*&lt;/li&gt;
&lt;/ul&gt;</pre>
			</div>
		</div>

		<div class="viewport" id="viewport-listScroller" ui-scroll-viewport>
			<ul>
				<li ui-scroll="item in datasource">*{{item}}*</li>
			</ul>
		</div>

	</div>

</body>
</html>
Back to Directory File Manager