X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-ui-debug.js;h=0cc9924b3b2c0a5671a694c527d2094509e15fe1;hb=9ea1acba83952bd78bc099d6897a9c904cd189f8;hp=e373443b9f993fd1068c03ab1d345a83950895e5;hpb=d6d1e1fe78ba08b1a873583bb12bf05588ff45ae;p=roojs1 diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index e373443b9f..0cc9924b3b 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -6642,7 +6642,23 @@ Roo.extend(Roo.Button, Roo.util.Observable, { this.hide(); } }, - + /** + * Similar to toggle, but does not trigger event. + * @param {Boolean} state [required] Force a particular state + */ + setPressed : function(state) + { + if(state != this.pressed){ + if(state){ + this.el.addClass("x-btn-pressed"); + this.pressed = true; + }else{ + this.el.removeClass("x-btn-pressed"); + this.pressed = false; + } + } + }, + /** * If a state it passed, it becomes the pressed state otherwise the current state is toggled. * @param {Boolean} state (optional) Force a particular state @@ -6665,6 +6681,8 @@ Roo.extend(Roo.Button, Roo.util.Observable, { } }, + + /** * Focus the button */ @@ -20597,204 +20615,4603 @@ Roo.extend(Roo.form.Radio, Roo.form.Checkbox, { } -});//