# GraffitiToolbarItem
Class
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Close | (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) | |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Attributes | mObserver | GraffitiUpdateInterface | |
| Attributes | pageBounds | Rect | |
| BadgeIndicator | WebUIControl.Indicators | Nil | Bootstrap indicator to apply to the item's badge. |
| BadgeIsPill | Boolean | Nil | Determines whether the corners of the item's badge should be square or rounded. |
| BadgeText | String | Nil | Text to display within the item's badge. |
| BorderStyle | GraffitiToolbar.BorderStyles | Nil | Border color of the button. |
| BorderType | GraffitiToolbar.BorderTypes | Nil | Border type. |
| Bounds | Rect | Nil | |
| Caption | String | Nil | Text displayed in the button. |
| CaptionAlignment | GraffitiToolbar.Alignments | Nil | Position of the button's Caption within the display. |
| CaptionStyle | GraffitiToolbar.TextStyles | Nil | Color applied to the button's caption. |
| Container | WebContainer | Nil | WebContainer that is embedded in this item. |
| CornerStyle | GraffitiToolbar.Corners | Nil | Determines how the corners of the button are drawn. None means that the corners are the default square. |
| Enabled | Boolean | Nil | 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 | Nil | FontAwesome icon string. |
| IconObject | Variant | Nil | 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 | Nil | Height applied to icon. |
| IconObjectWidth | Integer | Nil | Width applied to icon. |
| IconPosition | GraffitiToolbar.IconPositions | Nil | Position of the icon relative to the caption. |
| ID | String | Nil | |
| imageSize | Integer | Nil | Size in pixels applied to image. |
| ImageString | String | Nil | URL string representing the image. |
| isImage | Boolean | False | Determines whether this is an image-based item. |
| OverrideStyle | GraffitiStyle | Nil | Use a GraffitiStyle rather than the built-in Bootstrap styles. |
| OverrideStyleState | GraffitiStyle | Nil | 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 | Nil | Toggle state of the button. If True the button appears pressed. |
| Style | GraffitiToolbar.ButtonStyles | Nil | Background color of the button. |
| Tag | Variant | Nil | Allows developers to attach another object or value to the button. |
| Width | Integer | Nil | Static item width. |