Thumbnail

in namespace DotVVM.Framework.Controls.Bootstrap

Renders Bootstrap Thumbnail.

Usage & Scenarios

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

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

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="Simple Thumbnail" Alt="Image">
  <CaptionTemplate >
    <h1>This is image caption.</h1>
    <p>You can put here description of the Image.</p>
  </CaptionTemplate>
</bs:Thumbnail>

Properties

Name Type Description Notes Default Value
property icon AlternateText String Gets or sets the alternate text.
attribute
inner element
static value
bindable
default
property icon CaptionTemplate ITemplate Gets or sets the caption template.
attribute
inner element
static value
bindable
default
null
property icon Height String Gets or sets the height of the image.
attribute
inner element
static value
bindable
default
100%
property icon ImageUrl String Gets or sets the URL of the image.
attribute
inner element
static value
bindable
default
property icon NavigateUrl String Gets or sets the hyperlink URL.
attribute
inner element
static value
bindable
default
null
property icon Title String Gets or sets the image title.
attribute
inner element
static value
bindable
default
property icon Width String Gets or sets the width of the image.
attribute
inner element
static value
bindable
default
100%

HTML produced by the control