qtip2

qtip2 - Click Event not working on first click

拈花ヽ惹草 提交于 2020-02-05 04:33:05
问题 I have something weird that is happening and I was hoping someone can shed some light on it for me. I am using the qtip2 plugin on an element on the page. Here is the code for it: $('.tooltipEdit').click(function(){ var id = $(this).attr('id'); $(this).qtip({ show:{ event: 'click', solo: true }, content: { text:'<form id="tooltipForm"><input type="text" value="'+$(this).text()+'" /> <button id="tooltipSave">Save</button></form>' }, position : { my : 'top center', at: 'bottom center', target:

How to enable qtip2 in Piechart made by Plottable.js/D3.js

若如初见. 提交于 2020-01-11 14:03:44
问题 I have this code, which tried to enable qtip in plottable.js var store = [{ Name:"Item 1", Total:18.73424242 }, { Name:"Item 2", Total:7.34311 }, { Name:"Item 3", Total:3.1235535}, { Name:"Item 4", Total:12.763574}]; var colorScale = new Plottable.Scales.Color(); var legend = new Plottable.Components.Legend(colorScale); var pie = new Plottable.Plots.Pie() .attr("fill", function(d){ return d.Name; }, colorScale) .addDataset(new Plottable.Dataset(store)) .attr("qtip2-title", function(d) {

Directive does not run link function when attribute changes value

允我心安 提交于 2020-01-05 17:46:01
问题 I have created a directive for encapsulating qTip2 library into my angular application (as described in another SO question) . I have a dictionary with different configurations for qTip and depending on the value I pass on the attribute cv-tooltip the appropriate configuration is passed in the .qtip call in the link function. This works fine for directives that are set in html (eg. shows a qtip on the right and cv-tooltip="left" on the left). Problem arises when I change the value of the

Directive does not run link function when attribute changes value

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-05 17:44:52
问题 I have created a directive for encapsulating qTip2 library into my angular application (as described in another SO question) . I have a dictionary with different configurations for qTip and depending on the value I pass on the attribute cv-tooltip the appropriate configuration is passed in the .qtip call in the link function. This works fine for directives that are set in html (eg. shows a qtip on the right and cv-tooltip="left" on the left). Problem arises when I change the value of the

Need to get qtip to display correct new javascript html table data that is dynamic

青春壹個敷衍的年華 提交于 2020-01-05 10:17:08
问题 I have a similar question in which I didn't have the right data in a fiddle to show. What the other question shows is doing a table row clone, but my data is table append to a div The jQuery $.each loop shows where I have a dynamically created the title (tooltip) This is the fiddle: http://jsfiddle.net/bthorn/Lpuf0x7L/1/ $.each(allData, function (index, issues) { strResult += "<tr><td class='nameField'> <a href='#'>" + issues.LAST_NAME + " " + issues.FIRST_NAME + " " + issues.INITIALS + "</a>

jQuery datatables in qtip2 popup

▼魔方 西西 提交于 2019-12-25 06:20:44
问题 I would like to insert the jQuery datatables table in a qtip2 popup. I did this test: http://jsfiddle.net/fDavN/5588/ But the search and pagination are not shown. $(document).ready(function() { $('.btn-layer').each(function() { $(this).qtip( { content: { text: 'Loading...', title: { text: 'User', button: true }, ajax: { url: '/echo/json/', type: 'GET', dataType: 'text', cache: false, //dataType: 'json', //contentType: 'application/json; charset=utf-8', //dataType: 'json', //data: { id: c_id }

Using qTip2 with jQuery Vector Maps (jqvmap)

ⅰ亾dé卋堺 提交于 2019-12-23 02:36:49
问题 I am trying to disable the default tool tip used in jqvmap and want to use qTip2 instead. Is there anyway to achieve this? Here is the fiddle. jquery code: jQuery('#vmap').vectorMap({ map: 'world_en', backgroundColor: null, color: '#ffffff', hoverOpacity: 0.7, selectedColor: '#666666', enableZoom: true, showTooltip: true, values: sample_data, scaleColors: ['#C8EEFF', '#006491'], normalizeFunction: 'polynomial', onLabelShow: function(event, label, code) { $("#jqvmap1_" + code).qtip({ content:

multi labels cytoscape js

时间秒杀一切 提交于 2019-12-13 02:33:16
问题 I'd like use two labels per node using cytoscape.js. One inside and another outside of the node, like this link image http://gcuculi.com/imagens/labels-constelation.png. I used qtip for external labels, but I need to print (ctrl+p) this page and qtip div positions are absolute (from document), so they don't appear in right place. There is a way to modify cytoscape.js for two labels or how I prevent qtip from this behavior? Tks!! 回答1: One way to get multiple distinct labels is to use compound

Jquery draggable show qtip while being dragged

假如想象 提交于 2019-12-13 01:24:06
问题 I want to show tootip on an element when it is being dragged and hide it when the element is dropped/reverted. I am using qtip2 for the tooltip My Code: $(".noDrop").qtip({ content: "You cannot drop this item", show: "mousedown", position: { target: 'mouse', viewport: $(window) // Keep it on-screen at all times if possible }, hide: { fixed: true, // Helps to prevent the tooltip from hiding ocassionally when tracking! event: 'mouseup' } }); Here is the fiddle: http://jsfiddle.net/e6dJq/ I can

dynamic javascript data with qtip is overriding all tooltips with same message

爷,独闯天下 提交于 2019-12-12 06:06:11
问题 I have a loop in which many different unique toolbar (title) messages appear. This jsfiddle shows the problem I'm having. If you rollover the default textbox that is there you correctly see title test which is in: <tr> <td class="tips" title='title test'> test this </td> <td> adf </td> </tr> I have a loop in which it simulates my production code albeit it is not unique data, but the issue is that it is completely changing all the titles including the existing title for the tooltip (title) on