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="Simplne 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 Attributes Dictionary<String,Object>
attribute
inner element
static value
bindable
default
null
property icon CaptionTemplate ITemplate Gets or sets the caption template.
attribute
inner element
static value
bindable
default
null
property icon ClientIDMode ClientIDMode Gets or sets the client ID generation algorithm.
attribute
inner element
static value
bindable
default
Static
property icon 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
null
property icon Height String Gets or sets the height of the image.
attribute
inner element
static value
bindable
default
100%
property icon ID String Gets or sets the unique control ID.
attribute
inner element
static value
bindable
default
null
property icon ImageUrl String Gets or sets the URL of the image.
attribute
inner element
static value
bindable
default
property icon InnerText String Gets or sets the inner text of the HTML element.
attribute
inner element
static value
bindable
default
null
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 Visible Boolean Gets or sets whether the control is visible.
attribute
inner element
static value
bindable
default
True
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