Tooltip in service portal

phani24
Tera Contributor

Hi,

I want to set tooltip on a field value like when I hover on the field then the entire value inside the field should be displayed outside in the hover .How can I achieve this in the service portal 

 

Thanks,

Phani

1 ACCEPTED SOLUTION

Pranav Bhagat
Kilo Sage

Hi

You have to use the combination of ng-model and tool tip ,modify the widget like below

HTML

<div>
  <br>
  <br>
 <input type="text" ng-model="greeting" data-toggle="tooltip" data-placement="right" title="{{greeting}}"/>
</div>

 

Client Script

 

api.controller=function($scope) {
	/* widget controller */
	var c = this;

	$scope.toolTip2=$scope.greeting;
};

 

Regards

Pranav

View solution in original post

9 REPLIES 9

Pranav Bhagat
Kilo Sage

Hi

You have to use the combination of ng-model and tool tip ,modify the widget like below

HTML

<div>
  <br>
  <br>
 <input type="text" ng-model="greeting" data-toggle="tooltip" data-placement="right" title="{{greeting}}"/>
</div>

 

Client Script

 

api.controller=function($scope) {
	/* widget controller */
	var c = this;

	$scope.toolTip2=$scope.greeting;
};

 

Regards

Pranav

Hi ,

Thanks for the reply,I have tried this and it worked for my requirement .

Can we adjust the size of the tooltip that is displaying?

Thanks,

Phani

Basically it will auto adjust based the text.

Regards

Pranav

ok ,Thanks

Bhawanjit Sing2
Mega Guru

Hi,

You can use uib-tooltip in your HTML.

https://angular-ui.github.io/bootstrap/

 

<a href="#" uib-tooltip="{{dynamicTooltip}}">{{dynamicTooltipText}}</a>