Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
web:accordionnav [2018/05/10 18:08]
agcyphers [Methods]
web:accordionnav [2019/05/08 03:26]
agcyphers [Events]
Line 13: Line 13:
 ^ Definition ​     ^ Description ​      ^ ^ Definition ​     ^ Description ​      ^
 | HeaderCollapsed( CollapsedItem as GraffitiWebAccordionnavItem ) | This event is fired when an accordion section is collapsed. | | HeaderCollapsed( CollapsedItem as GraffitiWebAccordionnavItem ) | This event is fired when an accordion section is collapsed. |
-| HeaderExpanded( ExpandedItem as GraffitiWebAccordionNavItem ) | This event is fired when an accordion section is collapsed. |+| HeaderExpanded( ExpandedItem as GraffitiWebAccordionNavItem ) | This event is fired when an accordion section is expanded. |
  
 ==== Methods ==== ==== Methods ====
 ^ Definition ​     ^ Description ​      ^ ^ Definition ​     ^ Description ​      ^
 | AddItem( newItem as GraffitiWebAccordionNavItem ) | Adds a new accordion section to the control and updates the display. | | AddItem( newItem as GraffitiWebAccordionNavItem ) | Adds a new accordion section to the control and updates the display. |
 +| CollapseItem( theItem as GraffitiWebAccordionNavItem ) | Collapses the specified item. |
 +| CollapseAll() | Collapses all currently expanded items. |
 +| Expand( theItem as GraffitiWebAccordionNavItem,​ CollapseOthers as Boolean = False ) | Expanded the selected item. |
 +| ExpandAll() | Expands all items. |
 +| ExpandedItems() As Integer | Returns a count of currently expanded items. |
 | FindItem( ItemText as [[http://​developer.xojo.com/​string|String]] ) as GraffitiWebAccordionNavItem | Searches through the array of child items looking for a caption of ItemText. | | FindItem( ItemText as [[http://​developer.xojo.com/​string|String]] ) as GraffitiWebAccordionNavItem | Searches through the array of child items looking for a caption of ItemText. |
 +| GetParent( ofItem as GraffitiWebAccordionNavItem ) as GraffitiWebAccordionNavItem | Returns the parent of the specified item. |
 +| Item(itemIndex as Integer) as GraffitiWebAccordionNavItem | Returns the item at the specified index. |
 +| ItemCount() as Integer | Returns the number of top-level items currently in the accordion. |
 | RemoveAll() | Removes all items from the display. | | RemoveAll() | Removes all items from the display. |
 | RemoveAll(fromItem as GraffitiWebAccordionNavItem) | Removes all children of fromItem from the display. | | RemoveAll(fromItem as GraffitiWebAccordionNavItem) | Removes all children of fromItem from the display. |
 | RemoveItem( ItemText as [[http://​developer.xojo.com/​string|String]] ) | Searches through the array of child items to remove the section or item with the matching caption and updates the display. This also removes any children of the specified item. | | RemoveItem( ItemText as [[http://​developer.xojo.com/​string|String]] ) | Searches through the array of child items to remove the section or item with the matching caption and updates the display. This also removes any children of the specified item. |
-| UpdateNotification(theItem as GraffitiWebAccordionNavItem,​ newCount as Integer) | Updates the badge count for the specified item. ''​0''​ removes the badge. | +| UpdateIcon( theItem as GraffitiWebAccordionNavItem,​ newIcon as String ) | Updated the icon of the specified item. | 
 +| UpdateNotification(theItem as GraffitiWebAccordionNavItem,​ newCount as Integer) | Updates the badge count for the specified item. ''​-1''​ removes the badge. | 
 +| UpdateText(theItem as GraffitiWebAccordionNavItem,​ newText as String ) | Updates the text of the specified item. |
 ==== Properties ==== ==== Properties ====
 ^ Name      ^ Type       ^ Default Value       ^ Description ​      ^ ^ Name      ^ Type       ^ Default Value       ^ Description ​      ^