tooltip

WPF - How to display a tooltip on a hyperlink only when the hyperlink is disabled

筅森魡賤 提交于 2019-12-24 00:59:30
问题 This is a more specific description of my problem from a previous question, with a follow-up answer. I had a standard hyperlink defined in XAML: <TextBlock> <Hyperlink IsEnabled="{Binding LinkEnabled}"> <TextBlock Text="{Binding Text}"/> </Hyperlink> </TextBlock> The hyperlink's IsEnabled property is bound to a property on the view model, the value of which can change. I needed to place a tooltip on the hyperlink which would only be displayed if the hyperlink is disabled. 回答1: To show the

How to show a table as a tooltip using jQuery?

偶尔善良 提交于 2019-12-24 00:55:05
问题 I have a Gridview populated with data and one of the column contains a Link Button (File List). If I click on the Linkbutton (FileList) a .net event will be fired and a call will be made to the database to retrieve the data. How to show that data in a HTML table format as a tool-tip as shown in the attached picture? I would like to achieve the tooltip using jQuery. 回答1: Simple example: HTML <a href="">test</a> <table> <tr><td>asdf</td><td>gsdi</td></tr> <tr><td>asdf</td><td>gsdi</td></tr> <

How to import tippy.js into an html page with webpack 4?

99封情书 提交于 2019-12-24 00:37:52
问题 Per the tippy.js git hub page I installed it with npm: npm i tippy.js Now I have a .js source file that's used for a webpack 4 html page that gets output to my ./dist folder, but I don't know how to import it; my other option is just to include it from the CDN but that doesn't seem very webpackesque Also I'm using ES6 via babel-loader stage-0; so how exactly do I import that in so it's included with my bundle? Shouldn't the CSS for tippy need to be imported as well? 回答1: Okay I found it here

WPF - ToolTip Binding with stringformat

这一生的挚爱 提交于 2019-12-23 22:19:59
问题 I want to make a tool tip using binding and string format, he is what I've tried: <TextBlock Text="{Binding Name}" ToolTip="{Binding Path=Name, StringFormat='The name is: {0}{}'}"/> The value of Name is : Golan What I expected to see is: The name is: Golan But all is see is: Golan 回答1: I think you can use this code <TextBlock Width="100" x:Name="tt" Text="{Binding Name}"> <TextBlock.ToolTip> <ToolTip Width="100" Content="{Binding Name}" ContentStringFormat="The Name is: {0}" /> </TextBlock

How do I show Tipsy tooltip on load and keep it shown?

丶灬走出姿态 提交于 2019-12-23 21:29:51
问题 I've just installed Tipsy Tooltip (http://onehackoranother.com/projects/jquery/tipsy/) script on my wordpress site, I'm just wondering how I go about showing the tooltip on page load and keeping it shown. This is the code I have so far; <a id="logo" href="#" original-title="Happy <?php echo date("l"); ?>"></a> <script type='text/javascript'> $("a#logo").tipsy('show'); </script> Thanks in advance! :) 回答1: Well, first you have to specify the attribute you want to use instead of title , in your

How to get rid of empty tooltips while displaying error messages on tooltips in PrimeFaces?

女生的网名这么多〃 提交于 2019-12-23 21:02:01
问题 I display error messages somewhere on <p:tooltip> as follows. <p:inputText id="text" value="#{bean.text}" required="true"/> <p:tooltip for="text"> <p:message for="text"/> </p:tooltip> Although it displays an error message the given tooltip, an empty/unnecessary tooltip is shown, when there is no error as can be seen in the following picture - beside the bottom right corner of the text box. How to get rid of such empty tooltips? (I tried someway but it did not work) 回答1: It can be done by

jQuery tipsy plugin. On focus trigger not working

馋奶兔 提交于 2019-12-23 19:49:34
问题 I have been filtering my way through jQuery tooltip plugins and have found tipsy. It is used by GitHub, that was what I based most of my decision on. I really like it and it is really easy to use. I am having a problem with it though. I need the tooltip to fade in on focus, not hover. It currently works but only on hover. Here is my current code: $('input.tip').tipsy({trigger: 'focus', gravity: 'w', fade: true}); With or without trigger: 'hover', makes no difference. I read the docs

jQuery Tooltip only works for first row of table

半城伤御伤魂 提交于 2019-12-23 19:30:34
问题 The jQuery tooltip works great for the first row of data in my table. After that, I only get the old school windows default tooltip in both IE and FF. Here is the HTML that builds table data: foreach ($displayData as $row) { echo '<tr bgcolor="' . $bgcolor[$a] . '">'; echo '<td><span id="fancy" title="Course Description: - '.$row["TSTRDS"].'">'.$row["TSTRTP"].'</span></td>'; echo '<td>'.$row["TSTRLC"].'</td>'; echo '<td>'.$row["TSADDR"].'</td>'; echo '<td>'.$row["TSDATE"].'</td>'; echo '<td>'

How to show tooltip on click

怎甘沉沦 提交于 2019-12-23 19:19:16
问题 I'm trying to use qtip2. My problem is that I want to show tooltip only when user clicks an href with a specified html inside. So I try this: function help(){ var link = document.getElementById('helps'); if(link.innerHTML=="Open"){ $('#helps').qtip({ content: { text: 'I get shown on click' }, show: { event: 'click' } }); link.innerHTML = "Close"; }else{ link.innerHTML="Open"; } } <a href="javascript:help()" id="helps">Open</a> My problem is that when I click, text becomes Close but tooltip

ToolTip Memory leak in WPF while binding a View to ViewModel

梦想的初衷 提交于 2019-12-23 18:05:20
问题 I have an application in WPF , MVVM . Shows a list of Images in a ListBox each image is associated to different session. My ListBox ItemTemplate looks like this, <ListBox.ItemTemplate> <DataTemplate> <Image Source="{Binding IsClaims,Converter={StaticResource PolicyClaimsImageSelector}}" ToolTipService.ShowDuration="7000"> <Image.ToolTip> <StackPanel> <TextBlock Text="{Binding WorkingSessionName}" /> <Views:ToolTipView DataContext="{Binding ThisViewModel}"/> </StackPanel> </Image.ToolTip> <