[CLOSED] Set Tooltip

  1. #1

    [CLOSED] Set Tooltip

    On version 2.x, button's setTooltip works as expected
    Click image for larger version. 

Name:	tp001.png 
Views:	5 
Size:	1.3 KB 
ID:	20431

    But on version 3.1, two tooltips are added
    Click image for larger version. 

Name:	tp002.png 
Views:	5 
Size:	1.5 KB 
ID:	20441

    <!DOCTYPE html>
    <html>
    <head runat="server">
        <script type="text/javascript">
            var DocumentReady = function () {
                var tip = Ext.create('Ext.tip.ToolTip', {
                    loader: {
                        url: Ext.net.ResourceMgr.resolveUrl("~/Example/LoadData"),
                    },
                    target: App._btn,
                    minHeight: 60,
                    minWidth: 200,
                    anchor: "top"
                });
    
                App._btn.setTooltip(tip);
            }
        </script>
    </head>
    <body>
        <ext:ResourceManager Theme="Gray" runat="server">
            <Listeners>
                <DocumentReady Handler="DocumentReady();" />
            </Listeners>
        </ext:ResourceManager>
        <ext:Button ID="_btn" Text="Hover Me" Margin="10" runat="server" />
    </body>
    </html>
    namespace SandBox.Controllers
    {
        public class ExampleController : System.Web.Mvc.Controller
        {
            public ActionResult Index()
            {
                return View();
            }
    
            public ActionResult LoadData()
            {
                return Content(DateTime.Now.ToString());
            }
        }
    }
    Last edited by Dimitris; Feb 05, 2015 at 1:55 PM. Reason: [CLOSED]
  2. #2
    Hello Raphael,

    Please, remove the following line from your script:

    App._btn.setTooltip(tip);
    The target element is monitored for mouseover events to trigger showing the tooltip when you set the target config option.

    The setTooltip method expects either a string or a QuickTip configuration object as a parameter.
    Last edited by Dimitris; Feb 05, 2015 at 6:22 AM.
  3. #3
    Thank you Dimitris. Please mark this thread as closed.

Similar Threads

  1. [CLOSED] Tooltip issues
    By rthiney in forum 2.x Premium Help
    Replies: 2
    Last Post: Jun 03, 2013, 12:43 PM
  2. [CLOSED] Tooltip position
    By FpNetWorth in forum 1.x Premium Help
    Replies: 1
    Last Post: Oct 16, 2012, 11:59 AM
  3. tooltip
    By [WP]joju in forum 1.x Help
    Replies: 0
    Last Post: Nov 18, 2009, 5:44 AM
  4. Tooltip
    By speedstepmem4 in forum 1.x Premium Help
    Replies: 3
    Last Post: Mar 17, 2009, 9:23 AM
  5. Tooltip
    By flaviodamaia in forum 1.x Help
    Replies: 2
    Last Post: Feb 26, 2009, 10:33 AM

Posting Permissions