mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
27 lines
787 B
HTML
27 lines
787 B
HTML
<!--
|
|
Copyright 2012 The Toolkitchen Authors. All rights reserved.
|
|
Use of this source code is governed by a BSD-style
|
|
license that can be found in the LICENSE file.
|
|
-->
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Selection</title>
|
|
<script src="../../polyfills/Components/components-polyfill.js" shadow="shim"></script>
|
|
<link rel="components" href="../../toolkit/src/g-selection.html">
|
|
</head>
|
|
<body>
|
|
<g-selection></g-selection>
|
|
<script>
|
|
window.addEventListener('WebComponentsReady', function() {
|
|
// g-selection provides a code module, not rendering
|
|
var s = document.querySelector("g-selection");
|
|
s.addEventListener("select", function(inEvent, inItem) {
|
|
console.log("selected", arguments);
|
|
});
|
|
s.select({});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|