MAF.control.PhotoBackButton
This is a back button that also has a additional image.
new MAF.control.PhotoBackButton()
Methods
appendTo() → {Class} inherited
Appends this component to a parent.
Returns:
This component.
createContent() inherited
After the component has appended to the view this method can be used to create some more content to be added to this component. Default this will add 2 MAF.element.Text components to the content array of this component. The first has a Fontawesome glyph.
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.
generateStatePacket() privateinherited
Gives a object containing values needed for keeping the state of this component between different views.
getAbsolutePosition() → {Object} inherited
Give back the position relative to its first positioned ancestor element
Returns:
{hOffset:Number, vOffset: Number}
getText() inherited
Get which text is displayed on this component.
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
inspectStatePacket() inherited
Handle the state of this component for example when returning on the view it is on.
setDisabled(disabled) inherited
Change the disabled state of the component. A disabled component will not be able to recieve focus.
If not changed in extended component it will also set opacity to 05 when disabled.
Parameters:
Name Type Argument Default Description disabled boolean optional false True will disable the component, false will enable it.
setSecure(secure) → {Class} inherited
Parameters:
Name Type Description secure boolean Returns:
This component.
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.
photobackButton.setSources({ src: 'path/to/image.png', missingSrc: 'path/to/missing.png' })
setText(text) inherited
Set the text for the back button label.
Parameters:
Name Type Description text String What to display on the back button label.
show() → {Class} inherited
Shows this component.
Returns:
This component.
thaw() → {Class} inherited
Thawes this component. Screen renders can trigger again.
Returns:
This component.
toggleDisabled() → {Class} inherited
Toggle between the disable states of the component.
Returns:
This component.
toggleSecure() → {Class} inherited
Toggle between the secure states of the component.
Returns:
This component.
verifySecure() inherited
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.
onSecureFailed
Fired when the component is secured and it fails to verify the security after a select.
onSelect
Fired when the component is selected.