zoukankan      html  css  js  c++  java
  • ExtJS专题(十二)Tooltips与QuickTips的使用

    ExtJs是通过Ext.ToolTip和Ext.QuickTips两个组件来实现浮动提示功能的。

        

    QuickTips代码示例:只需要加入Ext.QuickTips.init(); 就可以在html页面中使用。html页面 可以通过: 

     .html代码 

     

    1. <input type="button" value="OK" ext:qtitle="Test" ext:qtip="Test Content!">  
    2. <a id=tip1 href="">wanglong</a>&nbsp;&nbsp;&nbsp;<a id=ajax-tip href="">ajaxtip</a>
    3. <a id='close-tip' href="">closetip</a>
    4. <a id=track-tip href="">tracktip</a>  

     

     

     

    .net代码 
    1. //实现浮动提示.  
    2. Ext.QuickTips.init();
    3.   //Test  ToolTip
    4. new Ext.ToolTip({        target: 'tip1',        html: 'test tooltip'    });
    5.  new Ext.ToolTip({        target: 'ajax-tip',         200,        autoLoad: { url: 'AjaxPage.aspx' }    });
    6. new Ext.ToolTip({        target: 'close-tip',        html: 'test close',        title: 'test',        autoHide: false,        closable: true,        draggable: true    });
    7. new Ext.ToolTip({        target: 'track-tip',        title: 'Mouse Track',         200,        html: 'This tip will follow the nouse while  it  is over the element',        trackMouse: true,        dismissDelay: 15000    });

     

     

     

     //实现浮动提示.
        Ext.QuickTips.init();
        //Test  ToolTip
        new Ext.ToolTip({
            target: 'tip1',
            html: 'test tooltip'
        });
        new Ext.ToolTip({
            target: 'ajax-tip',
             200,
            autoLoad: { url: 'AjaxPage.aspx' }
        });
        new Ext.ToolTip({
            target: 'close-tip',
            html: 'test close',
            title: 'test',
            autoHide: false,
            closable: true,
            draggable: true
        });
        new Ext.ToolTip({
            target: 'track-tip',
            title: 'Mouse Track',
             200,
            html: 'This tip will follow the nouse while  it  is over the element',
            trackMouse: true,
            dismissDelay: 15000
        });

     //实现浮动提示.    Ext.QuickTips.init();    //Test  ToolTip    new Ext.ToolTip({        target: 'tip1',        html: 'test tooltip'    });    new Ext.ToolTip({        target: 'ajax-tip',         200,        autoLoad: { url: 'AjaxPage.aspx' }    });    new Ext.ToolTip({        target: 'close-tip',        html: 'test close',        title: 'test',        autoHide: false,        closable: true,        draggable: true    });    new Ext.ToolTip({        target: 'track-tip',        title: 'Mouse Track',         200,        html: 'This tip will follow the nouse while  it  is over the element',        trackMouse: true,        dismissDelay: 15000    });

  • 相关阅读:
    有哪些带汉字的 LOGO 或者图标设计得很出色?
    从初级晋级高级UI设计师学习路线+全套视频
    UI常见面试题-整体素养篇
    PS精修电影胶片调色特效[附素材及方法]
    全链路UI、UE设计学习路线+视频教程完整版
    网页设计之栅格系统及应用
    移动端APP产品设计结构及专业术语
    九十分钟极速入门Linux——Linux Guide for Developments 学习笔记
    PAT树_层序遍历叶节点、中序建树后序输出、AVL树的根、二叉树路径存在性判定、奇妙的完全二叉搜索树、最小堆路径、文件路由
    数据结构第三部分:树与树的表示、二叉树及其遍历、二叉搜索树、平衡二叉树、堆、哈夫曼树、集合及其运算
  • 原文地址:https://www.cnblogs.com/Leo_wl/p/1683988.html
Copyright © 2011-2022 走看看