Download Overture UX User Guide
Transcript
<med-page-link
med-page="common/room"
med-point="Room 1"
></med-page-link>
<med-page-link
med-page="common/room"
med-point="Room 2"
></med-page-link>
Attributes
med-label : The text displayed in the button. Defaults to the name of the point.
med-page : The HTML document you wish to load when the link is clicked. Must be format of FOLDER/NAME and
no file type after. If not specified, the page loads the med-point ’s HTML file associated to the ‘Control Panel’
section of the Configurator.
med-point : The point associated with the page loaded. For example, if loading a projector html page, you
can specify the projector you want to control in the link.
med-context : Information you wish to pass into the new html page. Must be in form of an object {item:
value} . This is an advanced feature used with creating templates.
med-roles : The roles that will be able to see the page-link. These roles are in addition to the access rights
provided if a med-point is specified. If no med-roles are specified, no extra access rights are added to the
link.
5.2.4.21 Include
The med-include tag loads another HTML file in the control panel. It is useful for creating templates by allowing
small portions of code to be reused in many panels.
Example
<med-include
med-point="Room_1_Projector"
med-file="common/proj"
></med-include>
<med-include
med-repeat="{parent: point, subtype: 'lighting'}"
med-file="common/lx"
></med-include>
Attributes
med-file : The HTML document you wish to include. Must be format of FOLDER/NAME and no file type after. If
not specified, the page lincludes the med-point ’s HTML file spcified in the ‘Control Panel’ section of the
Configurator.
med-point : The point associated with the page included. This is used to give context to the HTML. For
example, if including projector html page, you can specify the projector you want to control in the link.
med-context : Information you wish to pass into the new html page. Must be in form of an object {item:
value} .
5.2.4.22 Footer
Magic Menu Only
The med-footer is a specialized include that will display it’s content at the bottom of a magic menu page. This is
used to create a bottom navigation bar, or always available style content like a slider.