PDA

View Full Version : [solved][EXT x] Function delay {no not deffer}



BIS
3 May 2009, 3:29 AM
hello all

i know this is dumb but any chance someone can point to me how to specify minimum time for function execution

i am trying to attach a handler to rowSelectionModel selectionChange but i need not to handle every selection change; i would like the user to pause for a few splits of a second before i invoke the handler -showing row details-

i remember their is a config option for the addListner or the function class, or was it something i read at javascript the definitive guide:-?


any help appreciated

Animal
3 May 2009, 3:35 AM
So looking at the API docs is not an option for you?

BIS
3 May 2009, 3:38 AM
sorry

i've looked there but couldn't see how
forgive me if i overlooked something, can you point the config option please?

BIS
3 May 2009, 3:43 AM
thnx for the help

options : {buffer : Number}

i know i saw it somewhere

Condor
3 May 2009, 8:27 AM
Link to the Ext.util.Observable.addListener (http://www.extjs.com/deploy/dev/docs/?class=Ext.util.Observable&member=addListener) API docs.