Skip to content

Instantly share code, notes, and snippets.

@webOS101
Created September 12, 2014 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webOS101/08e05637be815e50fcb9 to your computer and use it in GitHub Desktop.
Save webOS101/08e05637be815e50fcb9 to your computer and use it in GitHub Desktop.
.dont {
border: 2px solid red;
padding: 2px;
}
.do {
border: 2px solid green;
padding: 2px;
}
enyo.ready(function() {
enyo.kind({
name: 'Columns',
kind: 'FittableColumns',
components: [
{ content: 'Fixed width', classes: 'dont' },
{ content: 'This expands', fit: true, classes: 'do' },
{ content: 'Another fixed width', classes: 'dont' }
]
});
enyo.kind({
name: 'FittableSample',
layoutKind: 'FittableRowsLayout',
components: [
{ content: 'Fixed height', classes: 'dont' },
{ kind: 'Columns', fit: true, classes: 'do' },
{ content: 'Another fixed height', classes: 'dont' }
]
});
new enyo.Application({ name: 'app', view: 'FittableSample' });
});
name: Fittable Sample
description: An example of fittable rows and columns
authors:
- Roy Sutton
normalize_css: no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment