php知识管理系统,ext.tree.treeloader.html

addEvents( Object object ) : void Used to define events on this Observable Used to define events on this Observable Parameters: object : ObjectThe object with the events defined Returns: void Observable   addListener( String eventName, Function handler, [Object scope], [Object options] ) : void Appends an event handler to this component Appends an event handler to this component Parameters: eventName : StringThe type of event to listen forhandler : FunctionThe method the event invokesscope : Object(optional) The scope in which to execute the handlerfunction. The handler function's "this" context.options : Object(optional) An object containing handler configurationproperties. This may contain any of the following properties:scope : ObjectThe scope in which to execute the handler function. The handler function's "this" context.delay : NumberThe number of milliseconds to delay the invocation of the handler after the event fires.single : BooleanTrue to add a handler to handle just the next firing of the event, and then remove itself.buffer : NumberCauses the handler to be scheduled to run in an Ext.util.DelayedTask delayedby the specified number of milliseconds. If the event fires again within that time, the originalhandler is not invoked, but the new handler is scheduled in its place.Combining OptionsUsing the options argument, it is possible to combine different types of listeners:A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)el.on('click', this.onClick, this, { single: true, delay: 100, forumId: 4});Attaching multiple handlers in 1 callThe method also allows for a single argument to be passed which is a config object containing propertieswhich specify multiple handlers.foo.on({ 'click' : { fn: this.onClick, scope: this, delay: 100 }, 'mouseover' : { fn: this.onMouseOver, scope: this }, 'mouseout' : { fn: this.onMouseOut, scope: this }});Or a shorthand syntax:foo.on({ 'click' : this.onClick, 'mouseover' : this.onMouseOver, 'mouseout' : this.onMouseOut, scope: this}); Returns: void Observable   createNode() : void Override this function for custom TreeNode node implementation Override this function for custom TreeNode node implementation Parameters: None. Returns: void TreeLoader   fireEvent( String eventName, Object... args ) : Boolean Fires the specified event with the passed parameters (minus the event name). Fires the specified event with the passed parameters (minus the event name). Parameters: eventName : Stringargs : Object...Variable number of parameters are passed to handlers Returns: Booleanreturns false if any of the handlers return false otherwise it returns true Observable   hasListener( String eventName ) : Boolean Checks to see if this object has any listeners for a specified event Checks to see if this object has any listeners for a specified event Parameters: eventName : StringThe name of the event to check for Returns: BooleanTrue if the event is being listened for, else false Observable   load( Ext.tree.TreeNode node, Function callback ) : void Load an Ext.tree.TreeNode from the URL specified in the constructor.This is called automatically when a node is expa... Load an Ext.tree.TreeNode from the URL specified in the constructor.This is called automatically when a node is expanded, but may be used to reloada node (or append new children if the clearOnLoad option is false.) Parameters: node : Ext.tree.TreeNodecallback : Function Returns: void TreeLoader   on( String eventName, Function handler, [Object scope], [Object options] ) : void Appends an event handler to this element (shorthand for addListener) Appends an event handler to this element (shorthand for addListener) Parameters: eventName : StringThe type of event to listen forhandler : FunctionThe method the event invokesscope : Object(optional) The scope in which to execute the handlerfunction. The handler function's "this" context.options : Object(optional) Returns: void

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值