backbone.select
Version:
Selecting Backbone models; handling selections in Backbone collections.
72 lines (57 loc) • 2.85 kB
HTML
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Backbone.Select 1.5.5: Basic demo, with model sharing (AMD)</title>
<meta name="description" content="Backbone.Select 1.5.5: Basic demo, with model sharing (AMD)">
<!-- ATTN Foundation loaded without JS - stay clear of JS-driven widgets, or add the JS setup -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.3/css/normalize.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.3/css/foundation.css">
<link rel="stylesheet" href="https://cdn.rawgit.com/hashchange/backbone.select/1.5.5/demo/common.css">
<link rel="stylesheet" href="https://cdn.rawgit.com/hashchange/backbone.select/1.5.5/demo/amd/basic.css">
</head>
<body>
<section id="header">
<h1 class="row">Backbone.Select</h1>
<h2 class="row">Basic demo, with model sharing (AMD)</h2>
</section>
<section>
<div class="row">
<p>Select.One collection: Numbers</p>
</div>
<div class="row">
<ul id="numList" class="small-block-grid-3 medium-block-grid-6 large-block-grid-6 list"></ul>
</div>
<div class="row">
<p>Select.One collection: Alpha, LC</p>
</div>
<div class="row">
<ul id="alphaLcList" class="small-block-grid-3 medium-block-grid-6 large-block-grid-6 list"></ul>
</div>
<div class="row">
<p>Select.One collection: Alpha, UC</p>
</div>
<div class="row">
<ul id="alphaUcList" class="small-block-grid-3 medium-block-grid-6 large-block-grid-6 list"></ul>
</div>
<div class="row">
<p>Select.One collection: First item of each of the other Select.One collections<br>
<small>Because these items are combined in a Select.One collection, the other collections are affected, too. You can select the first item in one collection at a time, not in multiple ones.</small>
</p>
</div>
<div class="row">
<ul id="firstList" class="small-block-grid-3 medium-block-grid-6 large-block-grid-6 list"></ul>
</div>
<div class="row">
<p>Select.Many collection: All items combined</p>
</div>
<div class="row">
<ul id="multiList" class="small-block-grid-3 medium-block-grid-6 large-block-grid-6 list"></ul>
</div>
</section>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.1/require.js"></script>
<script src="https://cdn.rawgit.com/hashchange/backbone.select/1.5.5/demo/amd/rjs/output/parts/vendor.js"></script>
</body>
</html>