Guest User

Untitled

a guest
Jan 22nd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. enyo.kind({
  2. kind: "VFlexBox",
  3. name: "BuildView",
  4. components: [
  5. {
  6. kind: "Input",
  7. name: "ShowName",
  8. alwaysLooksFocused: true,
  9. hint: "Slideshow Name"
  10. },
  11. { name: "selectedFiles", content: "Let's build a show", flex: 1 },
  12. { kind: "Button", caption: "Add Image", onclick: "PickPic" },
  13. {
  14. name:'filePicker',
  15. kind: "FilePicker",
  16. fileType:["image"],
  17. allowMultiSelect:false,
  18. onPickFile: "PicSelected"
  19. },
  20. ],
  21. create: function() {
  22. this.inherited(arguments);
  23. this.images = [];
  24. },
  25. PickPic: function(inSender, inEvent) {
  26. this.$.filePicker.pickFile();
  27. },
  28. PicSelected: function(inSender, msg) {
  29. this.images.push( msg[0] );
  30. }
  31. });
Add Comment
Please, Sign In to add comment