DOT

VVM

 DOCS

Version: 1.0 | 1.1 |

Thumbnail

in namespace DotVVM.Framework.Controls.Bootstrap

Renders Bootstrap Thumbnail.

Properties

Name Type Description Notes Default Value
AlternateText String Gets or sets the alternate text.
attribute
inner element
static value
bindable
default
Attributes Dictionary<String,Object>
attribute
inner element
static value
bindable
default
CaptionTemplate ITemplate Gets or sets the caption template.
attribute
inner element
static value
bindable
default
ClientIDMode ClientIDMode Gets or sets the client ID generation algorithm.
attribute
inner element
static value
bindable
default
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.
attribute
inner element
static value
bindable
default
Height String Gets or sets the height of the image.
attribute
inner element
static value
bindable
default
100%
ID String Gets or sets the unique control ID.
attribute
inner element
static value
bindable
default
ImageUrl String Gets or sets the URL of the image.
attribute
inner element
static value
bindable
default
InnerText String Gets or sets the inner text of the HTML element.
attribute
inner element
static value
bindable
default
NavigateUrl String Gets or sets the hyperlink URL.
attribute
inner element
static value
bindable
default
Title String Gets or sets the image title.
attribute
inner element
static value
bindable
default
Visible Boolean Gets or sets whether the control is visible.
attribute
inner element
static value
bindable
default
True
Width String Gets or sets the width of the image.
attribute
inner element
static value
bindable
default
100%

Events

Name Type Description

Usage & Scenarios

Renders the Bootstrap Thumbnail over an Image which can have caption.

https://getbootstrap.com/docs/3.3/components/#thumbnails

HTML Rendered by the Control

Sample 1: Thumbnail

The Thumbnail control has the same properties of the displayed image as the Image control.

Additionally, it has the NavigateUrl property which specifies the URL where the hyperlink navigates to.

The CaptionTemplate property of the Thumbnail control allows to customize the caption of the thumbnail.

<bs:Thumbnail ImageUrl="~/Images/LA.jpg" Title="Simplne Thumbnail" Alt="Image">
  <CaptionTemplate >
    <h1>This is image caption.</h1>
    <p>You can put here description of the Image.</p>
  </CaptionTemplate>
</bs:Thumbnail>

Suggestions


Help & Contribute

The documentation is maintained on GitHub.
We'll be happy if you edit the page and create a pull request.

Send message