Version:
1.0 | 1.1 | 2.0

Thumbnail

in namespace DotVVM.Framework.Controls.Bootstrap

Renders Bootstrap 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
property icon CaptionTemplate ITemplate Gets or sets the caption template.
attribute
inner element
static value
bindable
default
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
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
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
property icon NavigateUrl String Gets or sets the hyperlink URL.
attribute
inner element
static value
bindable
default
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%

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.

Edit on Github

Send message