Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enyo.kind({
- kind: "VFlexBox",
- name: "BuildView",
- components: [
- {
- kind: "Input",
- name: "ShowName",
- alwaysLooksFocused: true,
- hint: "Slideshow Name"
- },
- { name: "selectedFiles", content: "Let's build a show", flex: 1 },
- { kind: "Button", caption: "Add Image", onclick: "PickPic" },
- {
- name:'filePicker',
- kind: "FilePicker",
- fileType:["image"],
- allowMultiSelect:false,
- onPickFile: "PicSelected"
- },
- ],
- create: function() {
- this.inherited(arguments);
- this.images = [];
- },
- PickPic: function(inSender, inEvent) {
- this.$.filePicker.pickFile();
- },
- PicSelected: function(inSender, msg) {
- this.images.push( msg[0] );
- }
- });
Add Comment
Please, Sign In to add comment