Clean up examples directory
This CL removes a bunch of examples that don't actually work in the current engine. I've also renamed example-element to custom-element and example-scrollable to scrolling because the word "example" in the name is redundant with the name of the directory. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/980323003
This commit is contained in:
25
examples/custom-element/example-element.sky
Normal file
25
examples/custom-element/example-element.sky
Normal file
@@ -0,0 +1,25 @@
|
||||
<!--
|
||||
// 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.
|
||||
-->
|
||||
<import src="/sky/framework/sky-element.sky" />
|
||||
<sky-element>
|
||||
<template>
|
||||
<style>
|
||||
div {
|
||||
height: 50px;
|
||||
width: 50px;
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
<div>Hi</div>
|
||||
</template>
|
||||
<script>
|
||||
@Tagname('example')
|
||||
class ExampleElement extends SkyElement {
|
||||
}
|
||||
|
||||
_init(script) => register(script, ExampleElement);
|
||||
</script>
|
||||
</sky-element>
|
||||
16
examples/custom-element/index.sky
Normal file
16
examples/custom-element/index.sky
Normal file
@@ -0,0 +1,16 @@
|
||||
<!--
|
||||
// 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.
|
||||
-->
|
||||
<sky>
|
||||
<import src="example-element.sky" />
|
||||
<style>
|
||||
example {
|
||||
border: 1px solid blue;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
<example />
|
||||
</sky>
|
||||
Reference in New Issue
Block a user