A compact but useful control for swift uploading of an avatar into a form.
Related sample: Form. All controls
Related sample: Form. Avatar
Adding AvatarâYou can easily add an Avatar control during initialization of a form:
const form = new dhx.Form("form_container", {
rows: [
{
type: "avatar",
name: "avatar",
required: true,
labelWidth: 140,
label: "Employee photo",
labelPosition: "top",
placeholder: "Add a photo",
value: {
src: "https://server.domain/upload/image.jpg"
}
}
]
});
Propertiesâ
View the full list of configuration properties of the Avatar control.
Working with AvatarâYou can manipulate an Avatar control by using methods or events of the object returned by the getItem() method.
For example, you can get the value of the control:
const value = form.getItem("avatar").getValue();
Methodsâ
Check the full list of methods of the Avatar control.
EventsâCheck the full list of events of the Avatar control.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4