Created
September 12, 2014 21:19
-
-
Save webOS101/08e05637be815e50fcb9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.dont { | |
border: 2px solid red; | |
padding: 2px; | |
} | |
.do { | |
border: 2px solid green; | |
padding: 2px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' }); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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