简体   繁体   中英

Increase tooltip character limit

Is possible to increase the character limit of a tool tip?

I have a particular field where the text that I want to display is too long to be fully displayed. I show only the first few characters and the tooltip show the rest, however is getting hidden.

it is possible to increase the number of characters of the tool tip to display the entire message?

Based on the comments it sounds like you're using the built in tool tip framework (ie the browser). However, I'd recommend that you leverage a custom tool tip framework. I'd recommend the jQuery UI one.

  1. Download the jQuery UI .js file from here . NOTE: you can customize the download, so just check the Tool Tip library.
  2. Include that .js file in your page.
  3. Execute the following JavaScript. You could do this with a <script> tag at the top of the page - or in another .js file that you may have for initialization.

$( document ).tooltip();

If you don't already use jQuery, then download it here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM