MAF.control.PhotoGridCell
This is a grid cell that has a default styling asuming it only will display 1 image/photo.
new MAF.control.PhotoGridCell()
Methods
focus() inherited
This will try and focus this component. If it cannot recieve focus, this focus will stay on the currently focused component.
freeze() → {Class} inherited
Freezes this component. Screen renders no longer trigger until thawed.
Returns:
This component.
getAbsolutePosition() → {Object} inherited
Give back the position relative to its first positioned ancestor element
Returns:
{hOffset:Number, vOffset: Number}
getCellDataItem() → {Mixed} inherited
Returns:
Returns a dataset item.
getCellDimensions() → {Object} inherited
Returns:
With the width and height of the cells for the grid.
getView() → {Class} inherited
Returns:
Returns the view this class is appended on.
hide() → {Class} inherited
Hides this component.
Returns:
This component.
initialize() inherited
Initialize the class
setSource(source)
Set the src config of this component with a new image path.
Parameters:
Name Type Description source String Path of the image.
setSources(object)
Set the sources of the this component.
Parameters:
Name Type Description object Object Can contain src/missingSrc image path.
image.setSources({ src: 'path/to/image.png', missingSrc: 'path/to/missing.png' })
show() → {Class} inherited
Shows this component.
Returns:
This component.
thaw() → {Class} inherited
Thawes this component. Screen renders can trigger again.
Returns:
This component.
Events
onAnimationEnded
Fired when a animation on this component has ended.
onAppend
Fired when component has appended to a parent. Update visual appearances by applying a Theme style and rendering the skin.
onBlur
Fired when the component is blurred.
onFocus
Fired when the component recieves focus.
onNavigate
Fired when a navigation happens when the component has focus.
onSelect
Fired when the component is selected.