- Since:
- 1.0.40
- Copyright:
- Copyright (C) 2005-2020 Alfresco Software Limited
- License:
- GNU Lesser General Public License, see: Open Source Licensing
- Source:
Mixes In
Members
-
cssRequirements :object[]
-
An array of the CSS files to use with this widget.
Type:
- object[]
- Default Value:
- [{cssFile:"./css/AlfGalleryViewSlider.css"}]
- Source:
-
discreteValues :integer
-
The number of steps (including the beginning and end positions) on the slider
Type:
- integer
- Default Value:
- 16
- Source:
-
maximum :integer
-
The maximum value on the slider (this will represent the largest size in pixels that a thumbnail can be increased to).
Type:
- integer
- Default Value:
- 800
- Source:
-
minimum :number
-
The minimum value on the slider (this will represent the smallest size in pixels that a thumbnail can be decreased to).
Type:
- number
- Default Value:
- 100
- Source:
-
preferenceProperty :string
-
The preference property to use for retrieving and setting the users preferred thumbnail size
Type:
- string
- Default Value:
- "org.alfresco.share.documentList.thumbnailSize"
- Source:
-
showButtons :boolean
-
Indicates whether or not to show the bigger/smaller buttons at either end of the slider
Type:
- boolean
- Default Value:
- true
- Source:
-
value :number
-
The initial thumbnail size (in pixels).
Type:
- number
- Default Value:
- 100
- Source:
Methods
-
_setSelected(selected)
-
This method is required in order for the slider to "behave" itself without causing errors when placed as an item in a menu.
Parameters:
Name Type Description selected
boolean -
onChange(value)
-
Parameters:
Name Type Description value
number The value provided from the change to the slider. Fires:
-
onControlDisplayed()
-
This is called whenever the control is displayed to ensure that sizes are initialised.
Fires:
-
onPreferences(value)
-
This is called when user preferences are provided.
Parameters:
Name Type Description value
number The size of thumbnails to use Fires:
-
postCreate()
-
Fires: