Advertisement
dwhitzzz

hideShowButton - SmartClient

May 18th, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var bool = false;
  2. isc.HLayout.create({
  3.     membersMargin:10,
  4.     left:40,
  5.     members: [
  6.         isc.IButton.create({
  7.             title:"Show and hide",
  8.             click:"hideAndShow()"
  9.         })
  10.         ,
  11.         isc.IButton.create({
  12.             title:"Show Boolean",
  13.             click:"isc.warn('boolean '+bool)"
  14.         })
  15.     ]
  16. });
  17.  
  18. function hideAndShow(){
  19.     if(bool){
  20.         textbox.show();
  21.         bool = false;
  22.     }
  23.     else{
  24.         textbox.hide();
  25.         bool = true;
  26.     }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement