daily pastebin goal
6%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var _Example = {
  2.     name:"com.technisode.example.App",
  3.     kind:"Control",
  4.     components:[
  5.         {kind:"Button", caption:"click me", onclick:"clicked"},
  6.         {kind:"toaster.addtsk", name:"addtsk"}
  7.     ],
  8.     clicked:function() {
  9.         this.$.addtsk.openAtCenter();
  10.     }
  11. };
  12.  
  13. enyo.kind({
  14.    name:"toaster.addtsk",
  15.    kind: enyo.Toaster,
  16.    flyInFrom: "right", style: "background-color:#E7E8EA; width:32%;height:100%;padding:0 10px 10px;", components: [
  17.    {name: "toasterSpace", style: "background-color: rgba(204,85,0,0.5); height: 100%;", kind: enyo.VFlexBox, components: [
  18.         {name: "toasterScroller", kind: enyo.Scroller, flex: 1, components: [
  19.          {content: "Change the task", style:"font-weight:600; color:#5D5D5D; margin:15px 0"},
  20.          {kind: "RichText", value: " ",alwaysLooksFocused:"true"},
  21.            
  22.             {kind: "RowGroup", caption: "List", components: [
  23.                {kind: "HFlexBox", align: "center", tapHighlight: false, components: [
  24.                   {content: "Business"},
  25.                   {kind: "Spacer"},
  26.                   {kind: "CheckBox"}
  27.                ]},
  28.                {kind: "HFlexBox", align: "center", tapHighlight: false, components: [
  29.                   {content: "Private"},
  30.                   {kind: "Spacer"},
  31.                   {kind: "CheckBox"}
  32.                ]},
  33.                {kind: "HFlexBox", align: "center", tapHighlight: false, components: [
  34.                   {content: "Shopping"},
  35.                   {kind: "Spacer"},
  36.                   {kind: "CheckBox"}
  37.                ]}
  38.             ]},
  39.            
  40.             {content: "Due date"},
  41.             {kind: "DatePicker", label: "", onChange: "pickerPick", style:"color:#000; width:25%"},
  42.            
  43.             {layoutKind: "HFlexLayout", align: "center", components: [
  44.                {content: "Responsible", flex: 1, onclick: "responsible"},
  45.                {kind: "ListSelector", className: "enyo-label", value: "you", hideArrow: false, items: [
  46.                   {caption: "You", value: "you"},
  47.                   {caption: "Bob", value: "bob"},
  48.                   {caption: "Neo", value: "neo"},
  49.                   {caption: "Natalia", value: "natalia"}
  50.                ]},
  51.                {content: "toaster.responsible"},
  52.             ]},
  53.            
  54.             {kind: "RowGroup", caption: "Reminders", components: [
  55.                {kind: "HFlexBox", align: "center", tapHighlight: false, components: [
  56.                   {kind: "CheckBox", checked: false, style: "margin-right:10px"},
  57.                   {content: "Standerd Reminder"}
  58.                ]},
  59.                {kind: "HFlexBox", align: "center", tapHighlight: false, components: [
  60.                   {kind: "CheckBox", checked: false, style: "margin-right:10px"},
  61.                   {content: "Individual Reminder"},
  62.                   {kind: "Image", src: "images/arrow1.png",style: "margin-left:30px;",onclick:"individualr"},
  63.                   //individualr
  64.                   {content: "toaster.individualr"},
  65.                ]},
  66.             ]},
  67.            
  68.             //{kind: "image", src:"status-available.png"},
  69.             {kind: "HFlexBox", align: "center", tapHighlight: false, components: [
  70.                {kind: "Button", caption: "Save", onclick: "aconfirmClick"},
  71.                {kind: "Button", caption: "Cancel", onclick: "acancelClick", style:"margin-left:30%"}
  72.             ]},
  73.          ]},
  74.       ]},
  75.    ],
  76. });
  77.  
  78. enyo.kind(_Example);
RAW Paste Data
Top