Frontend Page - Configure MenuConfig

From Izara Wiki
Revision as of 07:20, 13 June 2023 by Nink (talk | contribs) (Created page with "= Overview = Frontend page for creating and editing MenuConfigs = Repository = = visibleObj Object = <syntaxhighlight lang="json"> let visibleObj = { visibleRowIndex: 0, // row index we have open on page visibleRenameRowIndex: 0, // row index currently renaming rows:[ { menuElements: [ { show: false, // whether the menuElement settings are expanded menuText menuElements: [ // if menuElement is elementType menu, will have child menuElements...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

Frontend page for creating and editing MenuConfigs

Repository

visibleObj Object

let visibleObj = {
	visibleRowIndex: 0, // row index we have open on page
	visibleRenameRowIndex: 0, // row index currently renaming
	rows:[
		{
			menuElements: [
				{
					show: false, // whether the menuElement settings are expanded
					menuText
					menuElements: [ // if menuElement is elementType menu, will have child menuElements
					
					],
				},
				// ..
			]
		},
		// ..
	]
}

menuElements recursion

  • Menu elements are nested to any level
  • Structure of rows and menuElements in visible object matches structure of menuConfig/menuConfigSetting

Working documents