The Circular Image component for Retool Apps
A content area to display a circular image.
Circular Image is a preset version of Image. It has been preconfigured with a 50% border radius.
Settings
Circular Image includes the following configurable options when building apps in the IDE.
Show on desktopShow on mobileMaintain space when hiddenMarginAlways show in edit modeStyles |
Properties
All properties for Circular Image with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.
aspectRatio
The ratio of width-to-height (e.g., 1.3
to use 4:3 ratio).
clickable
Whether there is an enabled Click event handler.
dbBlobId
Self-hosted Retool deployments only. The ID of the uploaded image when srcType
is dbBlobId
.
Properties
method
The JavaScript method to perform when type
is datasource
, widget
, state
, or localStorage
.
Values
datasource | Control query. |
widget | Control component. |
script | Run script. |
state | Set variable. |
localStorage | Set localStorage. |
util | Perform utility action (e.g., Open URL or Confetti). |
Values
cover | Crop the image to fit the width. |
contain | Scale the image to fill the width. |
flipHorizontal
Whether the image is flipped horizontally.
flipVertical
Whether the image is flipped vertically.
global
Whether the object is globally scoped for use in all app pages.
heightType
Whether the height automatically resizes to fit content or is a fixed size.
Values
fixed | Fixed height. |
auto | Expand to fit content. |
Whether the component is visible.
horizontalAlign
The horizontal alignment of the contents.
Values
left | Left alignment. |
center | Center alignment. |
right | Right alignment. |
stretched | Justified alignment |
id
The unique identifier.
isHiddenOnDesktop
Whether the component is visible in the desktop layout.
isHiddenOnMobile
Whether the component is visible in the mobile layout.
maintainSpaceWhenHidden
Whether the component takes up space on the canvas if hidden
is true
.
pluginType
The plugin type.
retoolFileObject
The file's data when using a file not stored in Retool Storage.
retoolStorageDynamicInput
Whether retoolStorageFileId
is set dynamically.
retoolStorageFileId
The Retool Storage file ID if srcType
is retoolStorageFileId
.
Whether to show legacy files in the file picker.