UNPKG

backbone.select

Version:

Selecting Backbone models; handling selections in Backbone collections.

74 lines (59 loc) 2.78 kB
<!doctype 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: Custom label demo for a Select.One collection (AMD)</title> <!-- ATTN Foundation loaded without JS - stay clear of JS-driven widgets, or add the JS setup --> <link rel="stylesheet" href="../bower_demo_components/foundation/css/normalize.css"> <link rel="stylesheet" href="../bower_demo_components/foundation/css/foundation.css"> <link rel="stylesheet" href="../common.css"> <link rel="stylesheet" href="trailing.css"> </head> <body> <!-- check that 'bower install' has been run in the demo dir if bower.json isn't empty --> <script src="../bower-check.js"></script> <section id="header"> <h1 class="row">Backbone.Select</h1> <h2 class="row">Custom label demo for a Select.One collection (AMD)</h2> <p id="build-info" class="row"> <a href="#" id="close-build-info">×</a> This page uses the AMD build in the <code>dist</code> directory, not the files in <code>src</code>. In other words, run the <code>grunt</code> command first to build a current version. </p> </section> <section> <div class="row"> <p>Select.One collection</p> </div> <div class="row"> <ul id="list" class="small-block-grid-3 medium-block-grid-6 large-block-grid-6 list"></ul> </div> </section> <!-- libraries --> <script src="../bower_demo_components/requirejs/require.js"></script> <!-- Runtime async script loading --> <script src="require-config.js"></script> <script> // Main file, set to the name of the main module. The name is defined in the paths config, in require-config.js. // If a path were used here, it would be relative to the baseUrl defined in require-config.js (which is set to // project root): // require( ['demo/amd/trailing'] ); require( ['local.trailing'] ); </script> <!-- For testing the output of r.js: - Generate an optimized r.js build (trailing-build.js) with `grunt requirejs`. For more info, see rjs/build-commands.md - Comment out the runtime async script loading, above - Uncomment the script tag below --> <!--<script src="rjs/output/unified/trailing-build.js"></script>--> <!-- Alternatively, also for testing r.js, use the multi-part build --> <!--<script src="rjs/output/parts/vendor.js"></script>--> <!--<script src="rjs/output/parts/trailing-app.js"></script>--> <script src="../close-build-info.js"></script> </body> </html>