Tooltip
in namespace DotVVM.Framework.Controls.Bootstrap
Adds Bootstrap Tooltip to inner element or control.
Usage & Scenarios
Adds the Bootstrap Tooltip to an element or control.
Sample 1: Tooltip Usage
The Tooltip control has the Title
property which holds the text used in the Tooltip.
The position of the tooltip can be set using the Position
property.
<bs:Tooltip Position="Left" Title="This element has simple tooltip">
<a href="#">Link 1</a>
</bs:Tooltip>
<bs:Tooltip Position="Right" Title="This element has simple tooltip">
<a href="#">Link 2</a>
</bs:Tooltip>
<bs:Tooltip Position="Bottom" Title="This element has simple tooltip">
<a href="#">Link 3</a>
</bs:Tooltip>
<bs:Tooltip Position="Top" Title="This element has simple tooltip">
<a href="#">Link 4</a>
</bs:Tooltip>
Properties
Name | Type | Description | Notes | Default Value | |
---|---|---|---|---|---|
BackgroundColor | BootstrapContextualBackgroundColor |
attribute
static value
bindable
|
None | ||
Centered | Boolean |
attribute
static value
|
False | ||
ClearFix | Boolean |
attribute
static value
|
False | ||
ClientIDMode | ClientIDMode | Gets or sets the client ID generation algorithm. |
attribute
static value
|
Static | |
DataContext | Object | Gets or sets a data context for the control and its children. All value and command bindings are evaluated in context of this value. The DataContext is null in client-side templates. |
attribute
bindable
|
null | |
Float | BootstrapQuickFloat |
attribute
static value
|
None | ||
ForceHidden | Boolean |
attribute
static value
bindable
|
False | ||
ForceShown | Boolean |
attribute
static value
|
False | ||
ID | String | Gets or sets the control client ID within its naming container. |
attribute
static value
bindable
|
null | |
IncludeInPage | Boolean | Gets or sets whether the control is included in the DOM of the page. |
attribute
bindable
|
True | |
InnerText | String | Gets or sets the inner text of the HTML element. Note that this property can only be used on HtmlGenericControl directly and when the control does not have any children. |
attribute
static value
bindable
|
null | |
Position | TooltipPosition | Gets or sets the position of the tooltip. |
attribute
static value
|
Left | |
TextColor | BootstrapContextualColor |
attribute
static value
bindable
|
None | ||
Title | String | Gets or sets the text of the tooltip. |
attribute
static value
bindable
|
||
Visibility | BootstrapVisibility |
attribute
static value
|
None | ||
Visible | Boolean | Gets or sets whether the control is visible. When set to false, `style="display: none"` will be added to this control. |
attribute
bindable
|
True |