Table of Contents
Enumerations #
Name | Values |
---|---|
Sizes | Cover |
Contain | |
Full |
Constants #
This class exposes no constants.
Events #
Definition | Description |
---|---|
Clicked | Fired when the user clicks the element. |
FileRemoved | Fired when the user clears the selected image. |
FileSelected as Boolean | Fired when the user has selected an image. Return False to cancel selection. Use Value property for filtering. |
FileUploaded | Fired 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 #
Definition | Parameters | Return Type | Description |
---|---|---|---|
Clear | None | None | Clears the currently selected image. |
PictureValue | None | Picture | Returns the current value of the component as a Xojo Picture object or Nil is conversion of data to Picture fails. |
Upload | None | None | Begins uploaded the currently selected image. |
Value | newValue as String | None | Sets the currently displayed image to the value specified. |
isBASE64 as Boolean = True | |||
Value | assigns File as GraffitiWebFile | None | |
Value | assigns p as Picture | None | |
Value | None | GraffitiWebFile |
Properties #
Name | Type | Default Value | Description |
---|---|---|---|
AutoUpload | Boolean | False | When True, upload will commence immediately upon file selection. |
IconFindButton | String | “fas fa-search” | FontAwesome icon used within the Find button. |
IconRemoveButton | String | “fas fa-times” | FontAwesome icon used within the Remove button. |
IconUploadButton | String | “fas fa-arrow-up” | FontAwesome icon used within the Upload button. |
ImageSize | GraffitiWebImagePicker.Sizes | Cover | Determines how selected images are drawn within the component display. |
PlaceholderText | String | “Drop an image here, or click the find button below.” | Text to display when no image is selected. |
ShowFindButton | Boolean | True | Determines whether the find button will be displayed when appropriate. |
ShowRemoveButton | Boolean | True | Determines whether the remove button will be displayed when an image is selected. |
ShowUploadButton | Boolean | True | Determines whether the upload button will be displayed when an image is selected. |
StyleFindButton | WebStyle | Nil | WebStyle applied to the Find button. |
StyleRemoveButton | WebStyle | Nil | WebStyle applied to the Remove button. |
StyleUploadButton | WebStyle | Nil | WebStyle applied to the Upload button. |
Examples #
This class currently has no examples.
Notes #
This class currently has no notes.