tooltip

Bootstrap tooltip disappears after second 'show'

你。 提交于 2019-12-10 21:41:48
问题 I want to produce a manual tooltip based upon some user input. The easiest way was to hide all tooltips and then show the relevent ones. I've reduced my code down to the bare essentials, and my tooltip keeps disappearing after the second "show". I'm using bootstrap 3.3.4 and jquery 2.1.3 Is there a problem with doing a show immediatly after a hide or am I missing something in my code? <input id="check" type="checkbox"> <script> var toolTipData = { placement: 'right', title: 'Checkmark checked

Change amount of time Bootstrap tooltips display / fade in and out

限于喜欢 提交于 2019-12-10 21:31:44
问题 I'm adding tooltips using Twitter Bootstrap, is there an attribute I can add which determines how long a tooltip displays for / how long it takes to fade in and out? <span class="myClass" data-tooltip="{{myData}}" data-tooltip-placement="right"></span> Cheers 回答1: Bootstrap uses the class .fade for the opacity change of the tooltips. It looks like this in the CSS file: .fade { opacity:0; -webkit-transition: opacity .15s linear; -o-transition: opacity .15s linear; transition: opacity .15s

CSS tooltips that are both keyboard navigable and touchscreen functional

ぃ、小莉子 提交于 2019-12-10 21:26:18
问题 This is my first time posting here, but I have found this site an invaluable repository for many years. I have recently been adding tooltips to a website form. Initially, my concern was to make these work when a mouse-user hovers over the tooltip icon (in my case simply '(?)'). I was using the following CSS: .tooltip { border-bottom: 1px dotted #000000; color: #000000; outline: none; cursor: help; text-decoration: none; position: relative; } .tooltip span { margin-left: -999em; position:

JTree node's changable tooltip

天大地大妈咪最大 提交于 2019-12-10 21:17:23
问题 I have a JTree populated with some (custom) nodes. I have a class that's subclass of DefaultTreeCellRenderer and using that "MyTreeCellRenderer" i can set tooltips for each node in my tree. It works fine: JTree is populated, cell renderer is set, all added nodes do have tooltips. Problem is that i don't know how to change tooltip for certain node in already populated tree... How to do that? Is there any way to "recreate" cell renderer for just one node in JTree? 回答1: I did it! Instead of

Overriding createToolTip() in a custom CellRenderer

别说谁变了你拦得住时间么 提交于 2019-12-10 19:15:48
问题 I'm trying to get a custom ToolTip for a specific column of a JTable. I've already created a CellRenderer (of which I've been changing other cell-specific attributes successfully): private class CustomCellRenderer extends DefaultTableCellRenderer { private static final long serialVersionUID = 1L; @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { JComponent c = (JComponent) super

setTooltipText() and android:tooltipText are not working in Nougat

半城伤御伤魂 提交于 2019-12-10 18:57:22
问题 I have an ImageButton, when I did some test for my app, I found that I could not show the tooltipText in my Xiaomi Note 4 with Android N device. But it shows up perfectly fine in my Samsung S8 with Android O, any idea why this can happen and how to mitigate this? The minimum reproducible code is really simple, just create a basic android project in android studio and replace the default HelloWorld Textview to <ImageButton android:layout_width="36dp" android:layout_height="36dp" android

Get tooltip from JComboBox Renderer

我的梦境 提交于 2019-12-10 18:18:31
问题 I have a ComboBox renderer that extend JPanel and has two labels. In here i need to show tool-tip when mouse goes to iconLabel only. If mouse is in labelItem tool-tip should not show. import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import javax.swing.JLabel; import javax.swing.JList; import javax.swing.JPanel; import javax.swing.ListCellRenderer; import javax.swing.plaf

I am receiving an “invalid 'in' operand style” error when trying to add a tooltip feature to standalone SVG files

自古美人都是妖i 提交于 2019-12-10 17:43:35
问题 I am trying to add tooltips to a standalone SVG file but it is returning the following error: TypeError: invalid 'in' operand style [Break On This Error] if ( name in style ) { for the following jquery-2.0.0 function: // return a css property mapped to a potentially vendor prefixed property function vendorPropName( style, name ) { // shortcut for names that are not vendor prefixed if ( name in style ) { return name; } // check for vendor prefixed names var capName = name.charAt(0).toUpperCase

Unicode tooltips not showing up

女生的网名这么多〃 提交于 2019-12-10 17:34:09
问题 I am trying to display unicode tooltips in my application window, however they do not seem to display. Non-unicode text shows up correctly but as soon as I try doing unicode no tooltip shows up. The following is what I am currently doing, any help is appreciated thank you. HWND parentHwnd = pickInfo->getViewer().getCachedHwnd(); CWnd *pWnd = CWnd::FromHandlePermanent(parentHwnd); HINSTANCE hInstance = GetModuleHandle(NULL); if (isUnicode) m_toolInfoW.lpszText = L"This tooltip does not show up