本篇介绍Ext.button组件的基本用法:这个组件的许多属性都很简单,看名字就知道什么意思,那这里就不再描述.

【原】基础篇:第六篇,Ext组件系列之--button组件的基本用法

<div><img src="../Images/Menus/house.png" alt=""/>
    <br />
    <br />
    <div ,function()
        {
            Ext.Msg.alert('提示消息框','测试Button组件:mouseover事件!');
        });

        buttonName.on("mouseout",function()
        {
            Ext.Msg.alert('提示消息框','测试Button组件:mouseout事件!');
        });

               
        比较常用的事件 从字面上就能够理解它们的意思 还有更多的方法请参考Ext2.2官方文档
        mouseout : ( Button this, Event e ) ;   
        mouseover : ( Button this, Event e );
        beforedestroy : ( Ext.Component this ) ;
        beforehide : ( Ext.Component this ) ;
        beforerender : ( Ext.Component this )
        beforeshow : ( Ext.Component this )
        click : ( Button this, EventObject e )
        destroy : ( Ext.Component this )
        disable : ( Ext.Component this )
        enable : ( Ext.Component this )
        hide : ( Ext.Component this )
        show : ( Ext.Component this )
        render : ( Ext.Component this )
       
    }
    Ext.onReady(ready);
    </script>
    </div>

【原】基础篇:第六篇,Ext组件系列之--button组件的基本用法

相关文章:

  • 2021-07-04
  • 2022-02-18
  • 2022-02-26
  • 2021-12-19
  • 2022-01-23
  • 2022-12-23
  • 2021-09-12
猜你喜欢
  • 2021-10-06
  • 2022-01-01
  • 2021-10-09
  • 2021-06-03
  • 2021-10-19
  • 2021-11-15
  • 2022-02-02
相关资源
相似解决方案