I have a kendo tooltip that displays when I hover over a line in the kendo grid. The tooltip content has several lines. Lines are displayed centered by default, while I would like them to be displayed on the left.
rowTable.kendoTooltip({ content: textToBeDisplayed, position: "bottom" });
You can override the .k-tooltip-contentCSS class .
.k-tooltip-content
.k-tooltip-content { text-align:left; }
See this jsFiddle example
For those of you who don't want to override the css class. I added a “built-in” style to the content.
.Content("<div style='text-align:left;'> " + myContent + "</div>")
Codingbadger , , .
, : http://jsfiddle.net/NameGrey/d4b0ez4n/5/
$(document).ready(function() { $("#target").kendoTooltip({ position: "right", width: "200px", content: "<div class='my-tooltip'>Tooltip content with <b>solid example</b></div>" }); });
Css:
.my-tooltip { text-align: left; font-size: 20px; }
Source: https://habr.com/ru/post/1583809/More articles:How to add if if method - arraysPython character alignment in python - pythonSend to App Store - iosPowerMockito calls a method when I use doReturn (..). When (....) - javaAFNetworking journal query request for multipart / form data - iosMockito: Как издеваться над методом, вызванным внутри другого метода - javaWhy does a 64-bit JVM require 12 bytes of a header compared to 8 bytes in a 32-bit JVM? - javaAccess to parent controller methods from directive? - angularjsJava Object Size - jvmError in GridsearchCV sklearn - pythonAll Articles