Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var qElements = new Class({
  2.  
  3.     Implements: qBase,
  4.  
  5.     // element counters
  6.     iRadio:1,
  7.     iButton:1,
  8.     iTextArea:1,
  9.     iTextField:1,
  10.  
  11.     initialize: function(){},
  12.  
  13.    
  14.     qButton: function(opt) {
  15.         var type = "qButton";
  16.         var b = this.getElContainer({'class':type+'Container'}).adopt(new Element('input', Object.merge({'type':'button','class':type,'value':'button'+this.iButton}, opt);));
  17.         return b;
  18.     },
  19.  
  20.  
  21.     getElContainer:function(options){
  22.         var el = new Element('div', options || {'class':'qElementContainer'});
  23.         return el;
  24.     }
  25.  
  26. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement