Skip to content

Left menu

rmvonji edited this page Sep 25, 2019 · 1 revision

Maximized Style

<menuGroup id="Maximized">
		<properties combine.keys="name">
			<property name="collapsible" value="false" />
			<property name="styleClass" value="headerless-menu-wrapper" />
			<property name="menuStyleClass" value="headerless-menu" />
			<property name="menuRowsStyleClass" value="headerless-menu-row" />
			<property name="menuLabelStyleClass" value="headerless-menu-row-label" />

			<property name="subMenuStyleClass" value="headerless-submenu" />
			<property name="subMenuRowsStyleClass" value="headerless-submenu-row" />
			<property name="subMenuLabelStyleClass" value="headerless-submenu-row-label" />
		</properties>
	</menuGroup>

Minimized style

<menuGroup id="Minimized">
		<properties combine.keys="name">
			<property name="maxItems" value="8" />

			<property name="styleClass" value="headerless-menu-minimized-wrapper" />
			<property name="menuStyleClass" value="headerless-menu-minimized" />
			<property name="menuRowsStyleClass" value="headerless-menu-minimized-row" />
			<property name="menuLabelStyleClass" value="headerless-menu-minimized-row-label" />

			<property name="subMenuStyleClass" value="headerless-submenu-minimized" />
			<property name="subMenuRowsStyleClass" value="headerless-submenu-minimized-row" />
			<property name="subMenuLabelStyleClass" value="headerless-submenu-minimized-row-label" />
		</properties>
	</menuGroup>

The Left menu

<menuRows>
		<menuRow id="HOME">
			<properties combine.keys="name">
				<property name="label" value="HOME_LABEL" />
				<property name="tooltip" value="HOME_LABEL" />
				<property name="setRootStructure" value="DemoDashboardRSView" />
				<property name="icon" value="mdi-home-outline:24" />
				<property name="separator-after" value="true" />
			</properties>
		</menuRow>

		<menuRow id="DASHBOARD">
			<properties combine.keys="name">
				<property name="label" value="DASHBOARD_LABEL" />
				<property name="tooltip" value="DASHBOARD_LABEL" />
				<property name="setRootviewContent" value="HeaderLessDashboardView" />
				<property name="icon" value="mdi-view-dashboard:24" />
				<property name="separator-after" value="true" />
			</properties>
		</menuRow>

		<menuRow id="HEADERLESS_TABLE">
			<properties combine.keys="name">
				<property name="label" value="HEADERLESS_TABLE" />
				<property name="tooltip" value="HEADERLESS_TABLE" />
				<property name="setRootviewContent" value="DemoHeaderLessTableViewView" />
				<property name="icon" value="mdi-table:28" />
				<property name="separator-after" value="true" />
			</properties>
		</menuRow>

		<menuRow id="HEADERLESS_FLOW">
			<properties combine.keys="name">
				<property name="label" value="HEADERLESS_LIST" />
				<property name="tooltip" value="HEADERLESS_LIST" />
				<property name="setRootviewContent" value="DemoListExample5View" />
				<property name="icon" value="mdi-format-list-bulleted:28" />
				<property name="separator-after" value="true" />
			</properties>
		</menuRow>

		<menuRow id="MAP">
			<properties combine.keys="name">
				<property name="label" value="MAP_LABEL" />
				<property name="tooltip" value="MAP_LABEL" />
				<property name="setRootviewContent" value="DemoMapView" />
				<property name="icon" value="gmi-map:28" />
				<property name="separator-after" value="true" />
			</properties>
		</menuRow>

		<menuRow id="WIZARD">
			<properties combine.keys="name">
				<property name="label" value="WIZARD_LABEL" />
				<property name="tooltip" value="WIZARD_LABEL" />
				<property name="setRootviewContent" value="HLWizardContentViewWizard" />
				<property name="icon" value="fa-plus:28" />
				<property name="separator-after" value="true" />
			</properties>
		</menuRow>

		<menuRow id="ADMINISTRATION">
			<properties combine.keys="name">
				<property name="label" value="ADMINISTRATION_LABEL" />
				<property name="tooltip" value="ADMINISTRATION_LABEL" />
				<property name="setRootviewContent" value="HeaderLessDemoAdministrationView" />
				<property name="icon" value="mdi-wrench:24" />
				<property name="separator-after" value="true" />
			</properties>
		</menuRow>
		
		<menuRow id="PREFERENCES">
			<properties combine.keys="name">
				<property name="label" value="PREFERENCES_LABEL" />
				<property name="tooltip" value="PREFERENCES_LABEL" />
				<property name="action" value="DoShowPreferencesInSecondaryRSView" />
				<property name="icon" value="mdi-settings:24" />
				<property name="separator-after" value="true" />
			</properties>
		</menuRow>
	</menuRows>

IOC configuration

<bean id="HeaderLessLeftMenuViewProvider" class="com.nexitia.emaginplatform.jfx.core.engine.components.menu.PrimaryMenuProvider">
		<property name="primaryMenu" value="/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/headerless/HeaderLessLeftMenuView.xml" />
	</bean>

	<bean id="HeaderLessLeftMenuView" class="com.nexitia.emaginplatform.jfx.core.engine.controller.SecondaryMenuController" scope="prototype">
		<property name="messageSource" ref="HeaderLessMessageSource" />
		<property name="menuProvider" ref="HeaderLessLeftMenuViewProvider" />
		<property name="modelProvider" ref="RootStructureModelLoader" />
	</bean>