Advertisement
patrickc

Untitled

Oct 11th, 2011
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. enyo.kind({
  2.     name: "MyWeather",
  3.     kind: enyo.VFlexBox,
  4.     components: [
  5.         {name: "slidingPane", kind: "SlidingPane", flex: 1, components: [
  6.             {name: "left", width: "320px", kind:"SlidingView", components: [
  7.                     //Dynamically fill with the zip/city
  8.                     {kind: "Header", content:"Zip/City"},
  9.                     {kind: "Scroller", flex: 1, components: [
  10.                         //Insert your components here
  11.                     ]},
  12.                     {kind: "Toolbar", components: [
  13.                         {kind: "Button", caption: "Choose Location", onclick "locationSelection"},
  14.                         {kind "Toaster", flyInFrom: "right", components: [
  15.                             {content: "Please choose your location."},
  16.                             {layoutKind: "HFlexLayout", pack: "center", components: [
  17.                                 {kind: "Input", caption: "Zip Code/City"},
  18.                                 {kind "Button", caption: "OK", onclick "confirmLocation"},
  19.                                 {kind "Button", caption: "Cancel", onclick: "cancel"},
  20.                             ]}
  21.                         ]}
  22.                     ]}
  23.             ]},
  24.             {name: "middle", width: "320px", kind:"SlidingView", components: [
  25.                     //Dynamically fill with the current view name. I.E. current forecast, 5 day forecast, radar, etc.
  26.                     {kind: "Header", content:"Current View"},
  27.                     {kind: "Scroller", flex: 1, components: [
  28.                         //Insert your components here
  29.                     ]},
  30.                     {kind: "Toolbar", components: [
  31.                         {kind: "GrabButton"}
  32.                     ]}
  33.             ]},
  34.             /*{name: "right", kind:"SlidingView", flex: 1, components: [
  35.                     {kind: "Header", content:"Panel 3"},
  36.                     {kind: "Scroller", flex: 1, components: [
  37.                         //Insert your components here
  38.                     ]},
  39.                     {kind: "Toolbar", components: [
  40.                         {kind: "GrabButton"}
  41.                     ]}
  42.             ]}*/
  43.         ]}
  44.     ]
  45. locationSelection: function() {
  46.     this.$.toaster.open();
  47. },
  48. confirmLocation: function()
  49. //process conformation
  50.     this.$.doConfirm;
  51.     this.$.toaster.close();
  52. };
  53. cancel: function() {
  54.     this.$.toaster.close();
  55. }
  56. });
  57.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement