Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Polymer ceci example
<polymer-element name="ceci-button" attributes="label"
extends="ceci-element" label="Click Me">
<template>
<style>
:host {
display: block;
width: 100%;
}
</style>
<button id="button" on-click="{{onClick}}">
{{label}}
</button>
</template>
<script>
Polymer('ceci-example', {
ready: function () {
this.super();
},
onClick: function () {
this.broadcast('click');
},
ceci: {
defaultBroadcasts: ['click'],
broadcasts: {
click: 'Fired when button is clicked.'
},
listeners: {
setLabel: 'Set Label'
},
editable: {
'label': {
type: "text",
description: "Text shown on the button.",
name: 'Label'
},
}
}
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.