diff --git a/ej2-asp-core-mvc/code-snippet/tooltip/ajaxcontent/tagHelper b/ej2-asp-core-mvc/code-snippet/tooltip/ajaxcontent/tagHelper index 72b68f5151..252b812755 100644 --- a/ej2-asp-core-mvc/code-snippet/tooltip/ajaxcontent/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/tooltip/ajaxcontent/tagHelper @@ -1,30 +1,31 @@ -
-

National Sports

- - - - - - - - - -
+ +
+

National Sports

+ + + + + + + + + +
- + \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/tooltip/ajaxcontent/tooltipdata.json b/ej2-asp-core-mvc/code-snippet/tooltip/ajaxcontent/tooltipdata.json new file mode 100644 index 0000000000..88a996d524 --- /dev/null +++ b/ej2-asp-core-mvc/code-snippet/tooltip/ajaxcontent/tooltipdata.json @@ -0,0 +1,44 @@ +[ + { + "Id": "1", + "Country": "Australia", + "Sports": "Cricket", + "Class": "sports-icon-cricket" + }, + { + "Id": "2", + "Country": "Bhutan", + "Sports": "Archery", + "Class": "sports-icon-archery" + }, + { + "Id": "3", + "Country": "China", + "Sports": "Table tennis", + "Class": "sports-icon-table-tennis" + }, + { + "Id": "4", + "Country": "Cuba", + "Sports": "Baseball", + "Class": "sports-icon-baseball" + }, + { + "Id": "5", + "Country": "India", + "Sports": "Hockey", + "Class": "sports-icon-hockey" + }, + { + "Id": "6", + "Country": "Switzerland", + "Sports": "Shooting", + "Class": "sports-icon-shooting" + }, + { + "Id": "7", + "Country": "United States", + "Sports": "Baseball", + "Class": "sports-icon-baseball" + } +] \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/tooltip/animation-default/tagHelper b/ej2-asp-core-mvc/code-snippet/tooltip/animation-default/tagHelper index 1c6a4a8ab1..f4e6d85c03 100644 --- a/ej2-asp-core-mvc/code-snippet/tooltip/animation-default/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/tooltip/animation-default/tagHelper @@ -1,20 +1,16 @@ - - -
- Show tooltip -
-
-
+ + + + + + + \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/tooltip/animation-openclose/tagHelper b/ej2-asp-core-mvc/code-snippet/tooltip/animation-openclose/tagHelper index 16af3d520e..f59568b487 100644 --- a/ej2-asp-core-mvc/code-snippet/tooltip/animation-openclose/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/tooltip/animation-openclose/tagHelper @@ -1,19 +1,16 @@ - - -
- Show tooltip -
-
-
+ + + + + + + + \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/tooltip/animation-transition/tagHelper b/ej2-asp-core-mvc/code-snippet/tooltip/animation-transition/tagHelper index 4b74952876..9f1151ecaa 100644 --- a/ej2-asp-core-mvc/code-snippet/tooltip/animation-transition/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/tooltip/animation-transition/tagHelper @@ -1,18 +1,19 @@ - - -
-

Transition effect

-
-
-
-
-
-
-
-
+ + + +
+

Transition effect

+
+
+
+
+
+
+
- - +
+
+
+ \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/tooltip/height-width/tagHelper b/ej2-asp-core-mvc/code-snippet/tooltip/height-width/tagHelper index 28fd3529bd..bb03ff6dcb 100644 --- a/ej2-asp-core-mvc/code-snippet/tooltip/height-width/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/tooltip/height-width/tagHelper @@ -1,4 +1,4 @@ - + Show Tooltip diff --git a/ej2-asp-core-mvc/code-snippet/tooltip/open-custom/tagHelper b/ej2-asp-core-mvc/code-snippet/tooltip/open-custom/tagHelper index d199f53958..e61bd9cf4a 100644 --- a/ej2-asp-core-mvc/code-snippet/tooltip/open-custom/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/tooltip/open-custom/tagHelper @@ -1,12 +1,12 @@
- + - + @@ -14,12 +14,12 @@


- + - + @@ -27,13 +27,13 @@


- + - +
diff --git a/ej2-asp-core-mvc/code-snippet/tooltip/open-mode/tagHelper b/ej2-asp-core-mvc/code-snippet/tooltip/open-mode/tagHelper index e65da04661..646bb83853 100644 --- a/ej2-asp-core-mvc/code-snippet/tooltip/open-mode/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/tooltip/open-mode/tagHelper @@ -1,25 +1,25 @@ - - -
Hover Me !(Default)
-
-
- - -
Click Me !
-
-
- - -
-
-
- - -
- -
-
-
+ + +
Hover Me !(Default)
+
+
+ + +
Click Me !
+
+
+ + +
+
+
+ + +
+ +
+
+
+ document.getElementById('tooltipopen').addEventListener("click", function () { + var customTooltip = document.getElementById('tooltipcustom').ej2_instances[0]; + if (this.getAttribute("data-tooltip-id")) { + customTooltip.close(); + } else { + customTooltip.open(this); + } + }); + \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/tooltip/scroll-mode/tagHelper b/ej2-asp-core-mvc/code-snippet/tooltip/scroll-mode/tagHelper index 981da7ff15..6837c3fdaa 100644 --- a/ej2-asp-core-mvc/code-snippet/tooltip/scroll-mode/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/tooltip/scroll-mode/tagHelper @@ -1,4 +1,4 @@ - +

@@ -15,7 +15,7 @@ diff --git a/ej2-asp-core-mvc/code-snippet/tooltip/sticky-mode/tagHelper b/ej2-asp-core-mvc/code-snippet/tooltip/sticky-mode/tagHelper index d2cae0760d..633f2fdc97 100644 --- a/ej2-asp-core-mvc/code-snippet/tooltip/sticky-mode/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/tooltip/sticky-mode/tagHelper @@ -1,4 +1,4 @@ - +

Show tooltip diff --git a/ej2-asp-core-mvc/code-snippet/tooltip/tip-pointer/tagHelper b/ej2-asp-core-mvc/code-snippet/tooltip/tip-pointer/tagHelper index b03ddad852..72c897af79 100644 --- a/ej2-asp-core-mvc/code-snippet/tooltip/tip-pointer/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/tooltip/tip-pointer/tagHelper @@ -1,34 +1,15 @@ -
- - -
- Show tooltip -
+ + + - -
- + + \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/tooltip/tooltip-disabed/tagHelper b/ej2-asp-core-mvc/code-snippet/tooltip/tooltip-disabed/tagHelper index 699b8259f4..67fe88ba36 100644 --- a/ej2-asp-core-mvc/code-snippet/tooltip/tooltip-disabed/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/tooltip/tooltip-disabed/tagHelper @@ -1,4 +1,5 @@ - + +
@@ -20,4 +21,4 @@ pointer-events: none; color: graytext; } - + \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/tooltip/tooltip-pointer/tagHelper b/ej2-asp-core-mvc/code-snippet/tooltip/tooltip-pointer/tagHelper index fa795e19e4..ed39f13050 100644 --- a/ej2-asp-core-mvc/code-snippet/tooltip/tooltip-pointer/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/tooltip/tooltip-pointer/tagHelper @@ -1,10 +1,10 @@ - - -
- Show tooltip -
-
-
+ + +
+ Show tooltip +
+
+
+ \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/tooltip/tooltip-positions/tagHelper b/ej2-asp-core-mvc/code-snippet/tooltip/tooltip-positions/tagHelper index af480db384..ea7081fe7e 100644 --- a/ej2-asp-core-mvc/code-snippet/tooltip/tooltip-positions/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/tooltip/tooltip-positions/tagHelper @@ -1,77 +1,45 @@ - - -
Show tooltip
-
-
+@* https://localhost:44322/Tooltip/TooltipPosition *@ + +
+
+ + + + + + +
+ +
+
+ + \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/tooltip/tooltip-view/tagHelper b/ej2-asp-core-mvc/code-snippet/tooltip/tooltip-view/tagHelper index 4ed85de370..7bdfbac9b8 100644 --- a/ej2-asp-core-mvc/code-snippet/tooltip/tooltip-view/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/tooltip/tooltip-view/tagHelper @@ -1,96 +1,96 @@ - - -
- Show tooltip -
-
-
+ + +
+ Show tooltip +
+
+
+ #target { + background-color: #ececec; + border: 1px solid #c8c8c8; + box-sizing: border-box; + margin: 70px auto; + padding: 20px; + width: 200px; + } + + + .customtooltip.e-tooltip-wrap .e-tip-content { + line-height: 20px; + } + + .customtooltip.e-tooltip-wrap .e-arrow-tip.e-tip-bottom { + height: 12px; + left: 50%; + top: 100%; + width: 24px; + } + + .customtooltip.e-tooltip-wrap .e-arrow-tip.e-tip-top { + height: 12px; + left: 50%; + top: -9px; + width: 24px; + } + + .customtooltip.e-tooltip-wrap .e-arrow-tip.e-tip-left { + height: 24px; + left: -9px; + top: 48%; + width: 12px; + } + + .customtooltip.e-tooltip-wrap .e-arrow-tip.e-tip-right { + height: 24px; + left: 100%; + top: 50%; + width: 12px; + } + + .customtooltip.e-tooltip-wrap { + border-radius: 4px; + opacity: 1; + } + + .customtooltip.e-tooltip-wrap.e-popup { + background-color: #fff; + border: 2px solid #000; + } + + .customtooltip.e-tooltip-wrap .e-tip-content { + color: #000; + font-size: 12px; + } + + .customtooltip.e-tooltip-wrap .e-arrow-tip-outer.e-tip-bottom { + border-left: 12px solid transparent; + border-right: 14px solid transparent; + border-top: 12px solid #000; + } + + .customtooltip.e-tooltip-wrap .e-arrow-tip-outer.e-tip-top { + border-bottom: 12px solid #000; + border-left: 12px solid transparent; + border-right: 12px solid transparent; + } + + .customtooltip.e-tooltip-wrap .e-arrow-tip-outer.e-tip-left { + border-bottom: 12px solid transparent; + border-right: 12px solid #000; + border-top: 12px solid transparent; + } + + .customtooltip.e-tooltip-wrap .e-arrow-tip-outer.e-tip-right { + border-bottom: 12px solid transparent; + border-left: 12px solid #000; + border-top: 12px solid transparent; + } + + .customtooltip.e-tooltip-wrap .e-arrow-tip-inner.e-tip-bottom { + color: #fff; + font-size: 25.9px; + } + + \ No newline at end of file diff --git a/ej2-asp-core-mvc/tooltip/content.md b/ej2-asp-core-mvc/tooltip/content.md index 7aa50d0052..def18edc30 100644 --- a/ej2-asp-core-mvc/tooltip/content.md +++ b/ej2-asp-core-mvc/tooltip/content.md @@ -48,7 +48,7 @@ Output be like the below. ![ASP .NET Core - Tooltip - Content](./images/tooltip-content.png) -## Dynamic content via Fetch +## Load dynamic Tooltip content The Tooltip content can be dynamically loaded by making use of the Fetch call. The Fetch request is usually made within the `beforeRender` event of the Tooltip, and then the Tooltip's `content` is assigned the value retrieved on it's success. @@ -63,6 +63,9 @@ N> The Tooltip **target** property includes a unique identifier used to associat {% highlight c# tabtitle="AjaxContent.cs" %} {% include code-snippet/tooltip/ajaxcontent/ajaxcontent.cs %} {% endhighlight %} +{% highlight c# tabtitle="tooltipdata.json" %} +{% include code-snippet/tooltip/ajaxcontent/tooltipdata.json %} +{% endhighlight %} {% endtabs %} {% elsif page.publishingplatform == "aspnet-mvc" %} diff --git a/ej2-asp-core-mvc/tooltip/how-to/dynamic-tooltip-content-with-html-elements.md b/ej2-asp-core-mvc/tooltip/how-to/dynamic-tooltip-content-with-html-elements.md index 3b739bf5ec..87f468498f 100644 --- a/ej2-asp-core-mvc/tooltip/how-to/dynamic-tooltip-content-with-html-elements.md +++ b/ej2-asp-core-mvc/tooltip/how-to/dynamic-tooltip-content-with-html-elements.md @@ -45,3 +45,6 @@ When using HTML elements as content to `Tooltip` make the content element `displ {% endtabs %} {% endif %} +Output be like the below. + +![ASP .NET Core - Dynamic Tooltip content with HTML elements](./images/htmlElements.png) \ No newline at end of file diff --git a/ej2-asp-core-mvc/tooltip/how-to/show-tooltip-on-disabled-elements-and-disable-tooltip.md b/ej2-asp-core-mvc/tooltip/how-to/show-tooltip-on-disabled-elements-and-disable-tooltip.md index f0363177f1..8f434efbe1 100644 --- a/ej2-asp-core-mvc/tooltip/how-to/show-tooltip-on-disabled-elements-and-disable-tooltip.md +++ b/ej2-asp-core-mvc/tooltip/how-to/show-tooltip-on-disabled-elements-and-disable-tooltip.md @@ -1,6 +1,6 @@ --- layout: post -title: Show Tooltip On Disabled Elements And Disable Tooltip in ##Platform_Name## Tooltip Component +title: Show Tooltips on disabled elements in ##Platform_Name## Tooltip Component | Syncfusion description: Learn here all about Show Tooltip On Disabled Elements And Disable Tooltip in Syncfusion ##Platform_Name## Tooltip component of syncfusion and more. platform: ej2-asp-core-mvc control: Show Tooltip On Disabled Elements And Disable Tooltip @@ -40,3 +40,6 @@ By default, Tooltips will not be displayed on disabled elements. However, it is {% endif %} +Output be like the below. + +![ASP .NET Core - Tooltip on disabled elements](./images/disabled-elements.png) \ No newline at end of file diff --git a/ej2-asp-core-mvc/tooltip/images/disabled-elements.png b/ej2-asp-core-mvc/tooltip/images/disabled-elements.png new file mode 100644 index 0000000000..4b3dfa4d1f Binary files /dev/null and b/ej2-asp-core-mvc/tooltip/images/disabled-elements.png differ diff --git a/ej2-asp-core-mvc/tooltip/images/htmlElements.png b/ej2-asp-core-mvc/tooltip/images/htmlElements.png new file mode 100644 index 0000000000..d7918ba36b Binary files /dev/null and b/ej2-asp-core-mvc/tooltip/images/htmlElements.png differ diff --git a/ej2-asp-core-mvc/tooltip/images/tip-pointer.png b/ej2-asp-core-mvc/tooltip/images/tip-pointer.png index 02d33aec18..f79a1eae2f 100644 Binary files a/ej2-asp-core-mvc/tooltip/images/tip-pointer.png and b/ej2-asp-core-mvc/tooltip/images/tip-pointer.png differ diff --git a/ej2-asp-core-mvc/tooltip/images/tooltip-position.png b/ej2-asp-core-mvc/tooltip/images/tooltip-position.png index 7a2562e896..cec0c79025 100644 Binary files a/ej2-asp-core-mvc/tooltip/images/tooltip-position.png and b/ej2-asp-core-mvc/tooltip/images/tooltip-position.png differ