Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(926)

Side by Side Diff: third_party/polymer/components-chromium/core-splitter/core-splitter.html

Issue 592593002: Inline scripts were extracted from Polymer elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/echo ""/echo/ Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!--
2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
3 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
5 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
6 Code distributed by Google as part of the polymer project is also
7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
8 -->
9
10 <!--
11 `core-splitter` provides a split bar and dragging on the split bar
12 will resize the sibling element. Use its `direction` property to indicate
13 which sibling element to be resized and the orientation. Usually you would want
14 to use `core-splitter` along with flex layout so that the other sibling
15 element can be _flexible_.
16
17 Example:
18
19 <div horizontal layout>
20 <div>left</div>
21 <core-splitter direction="left"></core-splitter>
22 <div flex>right</div>
23 </div>
24
25 In the above example, dragging the splitter will resize the _left_ element. And
26 since the parent container is a flexbox and the _right_ element has
27 `flex`, the _right_ element will be auto-resized.
28
29 For horizontal splitter set `direction` to "up" or "down".
30
31 Example:
32
33 <div vertical layout>
34 <div>top</div>
35 <core-splitter direction="up"></core-splitter>
36 <div flex>bottom</div>
37 </div>
38
39 @group Polymer Core Elements
40 @element core-splitter
41 @homepage github.io
42 -->
43
44 <link rel="import" href="../polymer/polymer.html">
45
46 <polymer-element name="core-splitter" attributes="direction locked minSize allow Overflow" on-trackstart="{{trackStart}}" on-track="{{track}}" on-down="{{prevent Selection}}" assetpath="">
47
48 <template>
49
50 <link rel="stylesheet" href="core-splitter.css">
51
52 </template>
53
54 </polymer-element><script src="core-splitter-extracted.js"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698