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

Unified Diff: ui/webui/resources/cr_elements/v1_0/cr_collapse/cr_collapse.js

Issue 1406023003: Elim cr_elements/v1_0 subdirectory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 side-by-side diff with in-line comments
Download patch
Index: ui/webui/resources/cr_elements/v1_0/cr_collapse/cr_collapse.js
diff --git a/ui/webui/resources/cr_elements/v1_0/cr_collapse/cr_collapse.js b/ui/webui/resources/cr_elements/v1_0/cr_collapse/cr_collapse.js
deleted file mode 100644
index 2ad4942b555d660143040d2a74ef8f60e64a6ff5..0000000000000000000000000000000000000000
--- a/ui/webui/resources/cr_elements/v1_0/cr_collapse/cr_collapse.js
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/**
- * @fileoverview
- * `cr-collapse` creates a collapsible block of content. By default, the content
- * will be collapsed. Use `opened` or `toggle()` to show/hide the content.
- * `cr-collapse` adjusts the height/width of the collapsible element to
- * show/hide the content. So avoid putting padding/margin/border on the
- * collapsible directly, and instead put a `div` inside and style that.
- *
- * Example:
- * <style>
- * #collapse-content {
- * padding: 15px;
- * }
- * </style>
- * <button on-click="{{toggle}}">toggle collapse</button>
- * <cr-collapse id="collapse">
- * <div id="collapse-content">
- * Content goes here...
- * </div>
- * </cr-collapse>
- *
- * ...
- *
- * toggle: function() {
- * this.$.collapse.toggle();
- * }
- *
- * @element cr-collapse
- */
-Polymer({
- is: 'cr-collapse',
-
- properties: {
- /**
- * Set opened to `true` to show the collapse element and to `false` to hide
- * it.
- */
- opened: {
- type: Boolean,
- value: false,
- reflectToAttribute: true,
- notify: true
- },
- },
-
- toggle: function() {
- this.$.collapse.toggle();
- },
-});

Powered by Google App Engine
This is Rietveld 408576698