PRIM_MD.MenuItem - ParentItem Property

Reference to the parent item of the menu item. Items at the root have a parentitem of null.

Member of PRIM_MD.MenuItem (PRIM_MD.MenuItem)

Data Type - PRIM_MD.MenuItem - Menu item to control webpage

Details

ParentItem property is an item in a Menu that contains other menu Items.
 
Items at the root of the list will have a ParentItem of Null.

Example

This example shows 4 parent Menu items that each contain menu items.
Begin_Com Role(*EXTENDS #PRIM_WEB) Theme(#SYS_THEME) Layoutmanager(#Layout1)
    Define_Com Class(#PRIM_TBLO) Name(#Layout1)
    Define_Com Class(#PRIM_TBLO.Row) Name(#Layout1Row1) Displayposition(1) Parent(#Layout1)
    Define_Com Class(#PRIM_TBLO.Column) Name(#Layout1Column1) Displayposition(1) Parent(#Layout1)
    Define_Com Class(#PRIM_TBLO.Item) Name(#Layout1Item1) Column(#Layout1Column1) Manage(#Menu) Parent(#Layout1) Row(#Layout1Row1) Sizing(ContentHeight)
    Define_Com Class(#PRIM_TBLO) Name(#LayoutMenu)
    Define_Com Class(#PRIM_TBLO.Row) Name(#LayoutMenuRow1) Displayposition(1) Parent(#LayoutMenu)
    Define_Com Class(#PRIM_TBLO.Column) Name(#LayoutMenuColumn1) Displayposition(1) Parent(#LayoutMenu)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutMenuItem2) Alignment(TopLeft) Column(#LayoutMenuColumn1) Manage(#MenuItem22) Parent(#LayoutMenu) Row(#LayoutMenuRow1) Sizing(ContentHeightFitToWidth) Flow(Down)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutMenuItem3) Alignment(TopLeft) Column(#LayoutMenuColumn1) Manage(#MenuItem21) Parent(#LayoutMenu) Row(#LayoutMenuRow1) Sizing(ContentHeightFitToWidth) Flow(Down)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutMenuItem4) Alignment(TopLeft) Column(#LayoutMenuColumn1) Manage(#ParentItem2) Parent(#LayoutMenu) Row(#LayoutMenuRow1) Sizing(ContentHeightFitToWidth) Flow(Down)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutMenuItem6) Alignment(TopLeft) Column(#LayoutMenuColumn1) Manage(#MenuItem12) Parent(#LayoutMenu) Row(#LayoutMenuRow1) Sizing(ContentHeightFitToWidth) Flow(Down)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutMenuItem7) Alignment(TopLeft) Column(#LayoutMenuColumn1) Manage(#MenuItem11) Parent(#LayoutMenu) Row(#LayoutMenuRow1) Sizing(ContentHeightFitToWidth) Flow(Down)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutMenuItem8) Alignment(TopLeft) Column(#LayoutMenuColumn1) Manage(#ParentItem1) Parent(#LayoutMenu) Row(#LayoutMenuRow1) Sizing(ContentHeightFitToWidth) Flow(Down)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutMenuItem1) Alignment(TopLeft) Column(#LayoutMenuColumn1) Manage(#MenuItem13) Parent(#LayoutMenu) Row(#LayoutMenuRow1) Sizing(ContentHeightFitToWidth) Flow(Down)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutMenuItem5) Alignment(TopLeft) Column(#LayoutMenuColumn1) Manage(#ParentItem3) Parent(#LayoutMenu) Row(#LayoutMenuRow1) Sizing(ContentHeightFitToWidth) Flow(Down)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutMenuItem9) Alignment(TopLeft) Column(#LayoutMenuColumn1) Manage(#MenuItem31) Parent(#LayoutMenu) Row(#LayoutMenuRow1) Sizing(ContentHeightFitToWidth) Flow(Down)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutMenuItem10) Alignment(TopLeft) Column(#LayoutMenuColumn1) Manage(#MenuItem32) Parent(#LayoutMenu) Row(#LayoutMenuRow1) Sizing(ContentHeightFitToWidth) Flow(Down)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutMenuItem11) Alignment(TopLeft) Column(#LayoutMenuColumn1) Manage(#MenuItem33) Parent(#LayoutMenu) Row(#LayoutMenuRow1) Sizing(ContentHeightFitToWidth) Flow(Down)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutMenuItem12) Alignment(TopLeft) Column(#LayoutMenuColumn1) Manage(#MenuItem34) Parent(#LayoutMenu) Row(#LayoutMenuRow1) Sizing(ContentHeightFitToWidth) Flow(Down)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutMenuItem13) Alignment(TopLeft) Column(#LayoutMenuColumn1) Manage(#ParentItem4) Parent(#LayoutMenu) Row(#LayoutMenuRow1) Sizing(ContentHeightFitToWidth) Flow(Down)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutMenuItem14) Alignment(TopLeft) Column(#LayoutMenuColumn1) Manage(#MenuItem41) Parent(#LayoutMenu) Row(#LayoutMenuRow1) Sizing(ContentHeightFitToWidth) Flow(Down)
 
    Define_Com Class(#PRIM_MD.Menu) Name(#Menu) Displayposition(1) Parent(#COM_OWNER) Tabposition(1) Layoutmanager(#LayoutMenu) Themedrawstyle('Card') Height(434) Left(450) Top(183)
    Define_Com Class(#PRIM_MD.MenuItem) Name(#ParentItem1) Caption('Menu 1') Displayposition(1) Left(0) Parent(#Menu) Tabposition(1) Top(0) Width(298) Themedrawstyle('ForegroundTheme') Paddingbottom(4) Paddingtop(4) Height(28)
    Define_Com Class(#PRIM_MD.MenuItem) Name(#MenuItem11) Caption('Menu 1.1') Displayposition(2) Height(32) Icon('view_quilt') Left(0) Parent(#Menu) Parentitem(#ParentItem1) Tabposition(2) Top(28) Width(298) Themedrawstyle('ForegroundTheme') Paddingbottom(4) Paddingtop(4)
    Define_Com Class(#PRIM_MD.MenuItem) Name(#MenuItem12) Caption('Menu 1.2') Displayposition(3) Height(32) Icon('view_quilt') Left(0) Parent(#Menu) Parentitem(#ParentItem1) Tabposition(3) Top(60) Width(298) Themedrawstyle('ForegroundTheme') Paddingbottom(4) Paddingtop(4)
    Define_Com Class(#PRIM_MD.MenuItem) Name(#ParentItem2) Caption('Menu 2') Displayposition(5) Left(0) Parent(#Menu) Tabposition(5) Top(124) Width(298) Themedrawstyle('ForegroundTheme') Paddingbottom(4) Paddingtop(4) Height(28)
    Define_Com Class(#PRIM_MD.MenuItem) Name(#MenuItem21) Caption('Menu 2.1') Displayposition(6) Height(32) Icon('view_quilt') Left(0) Parent(#Menu) Parentitem(#ParentItem2) Tabposition(8) Top(152) Width(298) Themedrawstyle('ForegroundTheme') Paddingbottom(4) Paddingtop(4)
    Define_Com Class(#PRIM_MD.MenuItem) Name(#MenuItem22) Caption('Menu 2.2') Displayposition(7) Height(32) Icon('view_quilt') Left(0) Parent(#Menu) Parentitem(#ParentItem2) Tabposition(9) Top(184) Width(298) Themedrawstyle('ForegroundTheme') Paddingbottom(4) Paddingtop(4)
    Define_Com Class(#PRIM_MD.MenuItem) Name(#MenuItem13) Caption('Menu 1.3') Displayposition(4) Height(32) Icon('view_quilt') Left(0) Parent(#Menu) Parentitem(#ParentItem1) Tabposition(4) Top(92) Width(298) Themedrawstyle('ForegroundTheme') Paddingbottom(4) Paddingtop(4)
    Define_Com Class(#PRIM_MD.MenuItem) Name(#ParentItem3) Caption('Menu 3') Displayposition(8) Left(0) Parent(#Menu) Tabposition(6) Top(216) Width(298) Themedrawstyle('ForegroundTheme') Paddingbottom(4) Paddingtop(4) Height(28)
    Define_Com Class(#PRIM_MD.MenuItem) Name(#MenuItem31) Caption('Menu 3.1') Displayposition(9) Height(32) Icon('view_quilt') Left(0) Parent(#Menu) Parentitem(#ParentItem3) Tabposition(10) Top(244) Width(298) Themedrawstyle('ForegroundTheme') Paddingbottom(4) Paddingtop(4)
    Define_Com Class(#PRIM_MD.MenuItem) Name(#MenuItem32) Caption('Menu 3.2') Displayposition(10) Height(32) Icon('view_quilt') Left(0) Parent(#Menu) Parentitem(#ParentItem3) Tabposition(11) Top(276) Width(298) Themedrawstyle('ForegroundTheme') Paddingbottom(4) Paddingtop(4)
    Define_Com Class(#PRIM_MD.MenuItem) Name(#MenuItem33) Caption('Menu 3.3') Displayposition(11) Height(32) Icon('view_quilt') Left(0) Parent(#Menu) Parentitem(#ParentItem3) Tabposition(12) Top(308) Width(298) Themedrawstyle('ForegroundTheme') Paddingbottom(4) Paddingtop(4)
    Define_Com Class(#PRIM_MD.MenuItem) Name(#MenuItem34) Caption('Menu 3.4') Displayposition(12) Height(32) Icon('view_quilt') Left(0) Parent(#Menu) Parentitem(#ParentItem3) Tabposition(13) Top(340) Width(298) Themedrawstyle('ForegroundTheme') Paddingbottom(4) Paddingtop(4)
    Define_Com Class(#PRIM_MD.MenuItem) Name(#ParentItem4) Caption('Menu 4') Displayposition(13) Left(0) Parent(#Menu) Tabposition(7) Top(372) Width(298) Themedrawstyle('ForegroundTheme') Paddingbottom(4) Paddingtop(4) Height(28)
    Define_Com Class(#PRIM_MD.MenuItem) Name(#MenuItem41) Caption('Menu 4.1') Displayposition(14) Height(32) Icon('view_quilt') Left(0) Parent(#Menu) Parentitem(#ParentItem4) Tabposition(14) Top(400) Width(298) Themedrawstyle('ForegroundTheme') Paddingbottom(4) Paddingtop(4)
End_Com

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020