Lines Matching defs:handle
130 * Makes an element foldable by clicking its handle
133 * as well. A state indicator is inserted into the handle and can be styled
141 * @param {selector} handle What should be clicked to toggle
145 makeToggle: function(handle, content, state){
146 var $handle, $content, $clicky, $child, setClicky;
147 $handle = jQuery(handle);
148 if(!$handle.length) return;
159 $handle.addClass('closed');
160 $handle.removeClass('open');
163 $handle.addClass('open');
164 $handle.removeClass('closed');
168 $handle[0].setState = function(state){
202 $handle.css('cursor','pointer')
203 .on('click', $handle[0].setState)
207 $handle[0].setState(state);