# GraffitiToolbarItem
Class
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Close | (None) | (None) | (None) |
| Constructor | isSpacer as Boolean <br> isFlex as Boolean = False | (None) | Instantiates a new class instance with the specified properties. |
| Constructor | isPicture as Boolean <br> thePicture as Picture <br> size as Integer | (None) | Instantiates a new class instance with the specified properties. |
| Constructor | isPicture as Boolean <br> PictureURL as String <br> size as Integer | (None) | Instantiates a new class instance with the specified properties. |
| Constructor | buttonCaption as String <br> buttonState as Boolean = False | (None) | Instantiates a new class instance with the specified properties. |
| Constructor | buttonCaption as String <br> buttonIcon as String <br> buttonState as Boolean = False | (None) | Instantiates a new class instance with the specified properties. |
| Constructor | container as WebContainer <br> width as Integer = -1 | (None) | Instantiates a new class instance with the specified properties. |
| ShowPopover | container as WebContainer <br> displaySide as WebContainer.DisplaySides = WebContainer.DisplaySides.Bottom <br> x as Integer = -1 <br> y as Integer = -1 | (None) | (None) |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Attributes | mObserver | GraffitiUpdateInterface | (None) |
| Attributes | pageBounds | Rect | (None) |
| BadgeIndicator | WebUIControl.Indicators | (None) | Bootstrap indicator to apply to the item's badge. |
| BadgeIsPill | Boolean | (None) | Determines whether the corners of the item's badge should be square or rounded. |
| BadgeText | String | (None) | Text to display within the item's badge. |
| BorderStyle | GraffitiToolbar.BorderStyles | (None) | Border color of the button. |
| BorderType | GraffitiToolbar.BorderTypes | (None) | Border type. |
| Bounds | Rect | (None) | (None) |
| Caption | String | (None) | Text displayed in the button. |
| CaptionAlignment | GraffitiToolbar.Alignments | (None) | Position of the button's Caption within the display. |
| CaptionStyle | GraffitiToolbar.TextStyles | (None) | Color applied to the button's caption. |
| Container | WebContainer | (None) | WebContainer that is embedded in this item. |
| CornerStyle | GraffitiToolbar.Corners | (None) | Determines how the corners of the button are drawn. None means that the corners are the default square. |
| Enabled | Boolean | (None) | When False the button will not respond to mouse events or trigger click actions. |
| Flex | Boolean | False | Determines if the item should fill available space when Spacer = True. |
| Icon | String | (None) | FontAwesome icon string. |
| IconObject | Variant | (None) | Allows for the use of a Xojo Picture object. Accepts Picture, WebPicture, WebFile, or URL . Supports all image types including SVG in URLs. |
| IconObjectHeight | Integer | (None) | Height applied to icon. |
| IconObjectWidth | Integer | (None) | Width applied to icon. |
| IconPosition | GraffitiToolbar.IconPositions | (None) | Position of the icon relative to the caption. |
| ID | String | (None) | (None) |
| imageSize | Integer | (None) | Size in pixels applied to image. |
| ImageString | String | (None) | URL string representing the image. |
| isImage | Boolean | False | Determines whether this is an image-based item. |
| OverrideStyle | GraffitiStyle | (None) | Use a GraffitiStyle rather than the built-in Bootstrap styles. |
| OverrideStyleState | GraffitiStyle | (None) | Use a GraffitiStyle rather than the built-in Bootstrap styles when State = True |
| Spacer | Boolean | False | Determines if this is a spacer item. |
| State | Boolean | (None) | Toggle state of the button. If True the button appears pressed. |
| Style | GraffitiToolbar.ButtonStyles | (None) | Background color of the button. |
| Tag | Variant | (None) | Allows developers to attach another object or value to the button. |
| Width | Integer | (None) | Static item width. |