Class Alfresco.UserProfile
Extends Alfresco.component.Base
User Profile component.
Defined in: profile.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Alfresco.UserProfile(htmlId)
UserProfile constructor.
|
| Field Attributes | Field Name and Description |
|---|---|
|
FileUpload module instance.
|
|
|
Object container for initialization options
|
- Fields borrowed from class Alfresco.component.Base:
- modules, services, widgets
| Method Attributes | Method Name and Description |
|---|---|
|
onCancel(e, p_obj)
Cancel Changes button click handler
|
|
|
onClearPhoto(e, p_obj)
Clear photo button click handler
|
|
|
onEditProfile(e, p_obj)
Edit Profile button click handler
|
|
|
onFileUploadComplete(complete)
File Upload complete event handler
|
|
|
onReady()
Fired by YUI when parent element is available for scripting.
|
|
|
onSuccess(response)
Save Changes form submit success handler
|
|
|
onUpload(e, p_obj)
Upload button click handler
|
- Methods borrowed from class Alfresco.component.Base:
- attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.UserProfile(htmlId)
UserProfile constructor.
- Parameters:
- {String} htmlId
- The HTML id of the parent element
- Returns:
- {Alfresco.UserProfile} The new UserProfile instance
Field Detail
{Alfresco.module.FileUpload}
fileUpload
FileUpload module instance.
{object}
options
Object container for initialization options
Method Detail
onCancel(e, p_obj)
Cancel Changes button click handler
- Parameters:
- {object} e
- DomEvent
- {object} p_obj
- Object passed back from addListener method
onClearPhoto(e, p_obj)
Clear photo button click handler
- Parameters:
- {object} e
- DomEvent
- {object} p_obj
- Object passed back from addListener method
onEditProfile(e, p_obj)
Edit Profile button click handler
- Parameters:
- {object} e
- DomEvent
- {object} p_obj
- Object passed back from addListener method
onFileUploadComplete(complete)
File Upload complete event handler
- Parameters:
- {object} complete
- Object literal containing details of successful and failed uploads
onReady()
Fired by YUI when parent element is available for scripting.
Component initialisation, including instantiation of YUI widgets and event listener binding.
Component initialisation, including instantiation of YUI widgets and event listener binding.
onSuccess(response)
Save Changes form submit success handler
- Parameters:
- {object} response
- Server response object
onUpload(e, p_obj)
Upload button click handler
- Parameters:
- {object} e
- DomEvent
- {object} p_obj
- Object passed back from addListener method