Guest User

Untitled

a guest
Jan 20th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. $('a#functionDescription').attr('title')
  2.  
  3. $('a#functionDescription').qtip({
  4. content: {
  5. text: false
  6. },
  7. style: {
  8. width: 250,
  9. tip: 'leftMiddle',
  10. color: 'white',
  11. background: '#66CC33',
  12. name: 'green'
  13. },
  14. position: {
  15. corner: {
  16. target: 'topRight',
  17. tooltip: 'bottomLeft'
  18. },
  19. adjust: { x: 0, y: -25 }
  20. },
  21. events: {
  22. render: function(event, api) {
  23. //what to write here ?
  24. }
  25. }
  26. });
  27.  
  28. content: {
  29. text: function() {
  30. return $(this).attr('title');
  31. }
  32. }
  33.  
  34. $('a#functionDescription').qtip({
  35. content: {
  36. text: $(this).attr('title'); //Replace this with any element attributes
  37. },
  38. style: {
  39. width: 250,
  40. tip: 'leftMiddle',
  41. color: 'white',
  42. background: '#66CC33',
  43. name: 'green'
  44. },
  45. position: {
  46. corner: {
  47. target: 'topRight',
  48. tooltip: 'bottomLeft'
  49. },
  50. adjust: { x: 0, y: -25 }
  51. },
  52. events: {
  53. render: function(event, api) {
  54. //what to write here ?
  55. }
  56. }
  57. });
Add Comment
Please, Sign In to add comment