Type Alias: AdwAvatarProps
AdwAvatarProps =
WidgetProps&object
Defined in: generated/jsx.ts:1766
Props for the AdwAvatar widget.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
customImage? | Gdk.Paintable | null | A custom image paintable. Custom image is displayed instead of initials or icon. | generated/jsx.ts:1772 |
iconName? | string | null | The name of an icon to use as a fallback. If no name is set, avatar-default-symbolic will be used. | generated/jsx.ts:1778 |
onNotify? | (self, propName) => void | null | Called when any property on this widget changes. Param The widget that emitted the notification Param The name of the property that changed (in kebab-case) | generated/jsx.ts:1799 |
ref? | Ref<Adw.Avatar> | - | generated/jsx.ts:1802 |
showInitials? | boolean | Whether initials are used instead of an icon on the fallback avatar. See AdwAvatar.icon-name for how to change the fallback icon. | generated/jsx.ts:1784 |
size? | number | The size of the avatar. | generated/jsx.ts:1786 |
text? | string | null | Sets the text used to generate the fallback initials and color. It's only used to generate the color if AdwAvatar.show-initials is FALSE. | generated/jsx.ts:1793 |