GraffitiImagePicker

View Categories

Enumerations #

NameValues
SizesCover
Contain
Full

Constants #

This class exposes no constants.

Events #

DefinitionDescription
ClickedFired when the user clicks the element.
FileRemovedFired when the user clears the selected image.
FileSelected as BooleanFired when the user has selected an image. Return False to cancel selection. Use Value property for filtering.
FileUploadedFired when the upload is complete and Value is populated with the image data.
ProgressReceived(ProgressValue as Double)Fired when a packet is received during the upload operation.

Methods #

DefinitionParametersReturn TypeDescription
ClearNoneNoneClears the currently selected image.
PictureValueNonePictureReturns the current value of the component as a Xojo Picture object or Nil is conversion of data to Picture fails.
UploadNoneNoneBegins uploaded the currently selected image.
ValuenewValue as StringNoneSets the currently displayed image to the value specified.
isBASE64 as Boolean = True
Valueassigns File as GraffitiWebFileNone
Valueassigns p as PictureNone
ValueNoneGraffitiWebFile

Properties #

NameTypeDefault ValueDescription
AutoUploadBooleanFalseWhen True, upload will commence immediately upon file selection.
IconFindButtonString“fas fa-search”FontAwesome icon used within the Find button.
IconRemoveButtonString“fas fa-times”FontAwesome icon used within the Remove button.
IconUploadButtonString“fas fa-arrow-up”FontAwesome icon used within the Upload button.
ImageSizeGraffitiWebImagePicker.SizesCoverDetermines how selected images are drawn within the component display.
PlaceholderTextString“Drop an image here, or click the find button below.”Text to display when no image is selected.
ShowFindButtonBooleanTrueDetermines whether the find button will be displayed when appropriate.
ShowRemoveButtonBooleanTrueDetermines whether the remove button will be displayed when an image is selected.
ShowUploadButtonBooleanTrueDetermines whether the upload button will be displayed when an image is selected.
StyleFindButtonWebStyleNilWebStyle applied to the Find button.
StyleRemoveButtonWebStyleNilWebStyle applied to the Remove button.
StyleUploadButtonWebStyleNilWebStyle applied to the Upload button.

Examples #

This class currently has no examples.

Notes #

This class currently has no notes.