ThumbnailOptions
Namespace: Wisej.Web.Ext.JssorSlider
Assembly: Wisej.Web.Ext.JssorSlider (4.1.0.0)
Represents the options of the thumbnail navigator (the panel with the preview images of the slides) of a JssorSlider.
- C#
- VB.NET
public class ThumbnailOptions : OptionsBase
Public Class ThumbnailOptions
Inherits OptionsBase
Example:
Showing a strip of 5 thumbnails that wraps around:
var thumbnails = new ThumbnailOptions(this.jssorSlider1)
{
Visible = true,
Wrap = true,
Columns = 5,
Rows = 1,
SpacingX = 8,
AutoCenterHorizontally = true
};
Constructors
ThumbnailOptions(slider)
Initializes a new instance of the ThumbnailOptions class for the specified slider.
| Name | Type | Description |
|---|---|---|
| slider | JssorSlider | The JssorSlider that owns these options. |
Properties
AutoCenterHorizontally
Boolean: Returns or sets whether the thumbnail navigator is automatically centered horizontally in the slider.
AutoCenterVertically
Boolean: Returns or sets whether the thumbnail navigator is automatically centered vertically in the slider.
Columns
Int32: Returns or sets the number of thumbnails displayed in the thumbnail navigator at the same time.
The default is 1.
Orientation
Orientation: Returns or sets the orientation used to arrange the thumbnails.
The default is Horizontal.
Rows
Int32: Returns or sets the number of rows (lanes) used to arrange the thumbnails.
The default is 1.
ShowOnMouseOver
Boolean: Returns or sets whether the thumbnail navigator is displayed only when the pointer is over the slider.
Applies only when Visible is true.
SpacingX
Int32: Returns or sets the horizontal space in pixels between the thumbnails.
SpacingY
Int32: Returns or sets the vertical space in pixels between the thumbnails.
Visible
Boolean: Returns or sets whether the thumbnail navigator is displayed.
When ShowOnMouseOver is also true, the thumbnail navigator is displayed only while the pointer is over the slider.
Wrap
Boolean: Returns or sets whether the thumbnail navigator wraps around (loops) when it reaches the last thumbnail.