2

I have defined a tooltip:

 window.myApp.directive 'atooltip', ->

   restrict: 'A'
   link: (scope, element, attrs) ->

     on_enter = ->
       $(element).tooltip('show')
     on_leave = ->
       $(element).tooltip('hide')

     $(element).hover(on_enter, on_leave)

Use it in my html file like this -->

<span toolipt atooltip data-tooltip="tooltip" data-placement="top" title="CLICK TO ADJUST PRICING">
          {{ something }}
        </span>

How can I change background-color, font etc., also I have more text to add in tooltip, how to format text, can I use html?

1 Answer 1

1

Read documentation about jQuery or angular.element, those offer the funcionality you want. element.css ("background-color","white").

Sign up to request clarification or add additional context in comments.

4 Comments

Is this a question or an answer? ;)
Now it is an answer :D
element.css ("background-color","white") where can I use this ??
Try adding it to on enter method and on leave after tool tip show line to change CSS.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.