Index: third_party/polymer/components-chromium/core-splitter/core-splitter.html |
diff --git a/third_party/polymer/components-chromium/core-splitter/core-splitter.html b/third_party/polymer/components-chromium/core-splitter/core-splitter.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a574551f10bb743e9717a294c8dd39755dd2b194 |
--- /dev/null |
+++ b/third_party/polymer/components-chromium/core-splitter/core-splitter.html |
@@ -0,0 +1,54 @@ |
+<!-- |
+Copyright (c) 2014 The Polymer Project Authors. All rights reserved. |
+This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt |
+The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
+The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt |
+Code distributed by Google as part of the polymer project is also |
+subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt |
+--> |
+ |
+<!-- |
+`core-splitter` provides a split bar and dragging on the split bar |
+will resize the sibling element. Use its `direction` property to indicate |
+which sibling element to be resized and the orientation. Usually you would want |
+to use `core-splitter` along with flex layout so that the other sibling |
+element can be _flexible_. |
+ |
+Example: |
+ |
+ <div horizontal layout> |
+ <div>left</div> |
+ <core-splitter direction="left"></core-splitter> |
+ <div flex>right</div> |
+ </div> |
+ |
+In the above example, dragging the splitter will resize the _left_ element. And |
+since the parent container is a flexbox and the _right_ element has |
+`flex`, the _right_ element will be auto-resized. |
+ |
+For horizontal splitter set `direction` to "up" or "down". |
+ |
+Example: |
+ |
+ <div vertical layout> |
+ <div>top</div> |
+ <core-splitter direction="up"></core-splitter> |
+ <div flex>bottom</div> |
+ </div> |
+ |
+@group Polymer Core Elements |
+@element core-splitter |
+@homepage github.io |
+--> |
+ |
+<link rel="import" href="../polymer/polymer.html"> |
+ |
+<polymer-element name="core-splitter" attributes="direction locked minSize allowOverflow" on-trackstart="{{trackStart}}" on-track="{{track}}" on-down="{{preventSelection}}" assetpath=""> |
+ |
+<template> |
+ |
+ <link rel="stylesheet" href="core-splitter.css"> |
+ |
+</template> |
+ |
+</polymer-element><script src="core-splitter-extracted.js"></script> |