Skip to content

Instantly share code, notes, and snippets.

@ryanjduffy
ryanjduffy / app.css
Created November 29, 2012 14:20
Enyo Tutorial - To Do Application
.todo-list {
width:50%;
background:#fff;
}
.todo-list .task-row {
height:40px;
background:#ccf;
border-bottom:1px solid #eef;
}
@ryanjduffy
ryanjduffy / App.js
Created February 23, 2012 17:33
Enyo wrapper for cubiq's iScroll 4
enyo.kind({
name:"ex.App",
kind:"Control",
components:[
{kind:"cubiq.iScroll", components:[
{kind:"VirtualRepeater", onSetupRow:"setupRow", components:[
{name:"row", onclick:"rowClicked"},
{kind:"Button", onclick:"buttonClicked"},
{kind:"Slider", min:0, max:20}
]},
@ryanjduffy
ryanjduffy / gist:1199671
Created September 7, 2011 03:21
Reset kind to published properties
var _Example = {
name:"com.technisode.example.App",
kind:"Control",
published:{
a:1,
b:2,
c:3
},
components:[
{kind:"IntegerPicker", name:"aPicker", label:"A"},
@ryanjduffy
ryanjduffy / dev.palm.com.17701
Created August 25, 2011 14:01
toaster example
var _Example = {
name:"com.technisode.example.App",
kind:"Control",
components:[
{kind:"Button", caption:"click me", onclick:"clicked"},
{kind:"toaster.addtsk", name:"addtsk"}
],
clicked:function() {
this.$.addtsk.openAtCenter();
}