Enumerations #
Name | Values |
---|
| This class exposes no enumerations. |
Constants #
Name | Type | Value |
---|
| | This class exposes no constants. |
Events #
Name | Parameters | Return Type | Description |
---|
HeaderCollapsed | CollapsedItem as GraffitiWebAccordionItem | None | This event is fired when an accordion section is collapsed. |
HeaderContextPressed | item as GraffitiAccordionItem position as Xojo.Point | None | Raised the user has context pressed an header. position parameter is relative to page. |
HeaderExpanded | ExpandedItem as GraffitiWebAccordionItem | None | This event is fired when an accordion section is expanded. |
HeightChanged | | None | Raised when the height of the component has changed due to a change in its displayed content and AutoHeight = True. |
Methods #
Definition | Description |
---|
AddItem( newItem as GraffitiWebAccordionItem ) | Adds a new accordion section to the control and updates the display. |
FindItem( ItemText as String ) as GraffitiWebAccordionItem | Searches through the array of child items looking for a caption of ItemText. |
FindItemIndex( itemText as String ) as GraffitiWebAccordionItem |
RemoveItem( ItemIndex as Integer ) | Removes the item at the specified index and updates the display. |
RemoveItem( ItemText as String ) | Searches through the array of child items to remove the section with the matching caption and updates the display. |
Update() | Updates the display. Must be used if you manually change any properties of the GraffitiWebAccordionItems. |
Properties #
Name | Type | Default Value | Description |
---|
AutoHeight | Boolean | False | When True, the control will automatically change height depending on what content is currently displayed. |
CollapsedIcon | String | “fa-plus-square” | A FontAwesome icon string for the icon used when items are collapsed. |
ExpandedIcon | String | “fa-minus-square” | A FontAwesome icon string for the icon used when items are expanded. |
StyleHeaderActive | WebStyle | Nil | WebStyle to apply to active header elements. |
StyleHeaderInactive | WebStyle | Nil | WebStyle to apply to inactive header elements. |
Examples #
There are currently no examples for this class.