Version: 1.0 | 1.1 | 2.0 |

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
CaptionTemplate ITemplate Gets or sets the caption template.
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%
ImageUrl String Gets or sets the URL of the image.
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
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