<!--
  ~ Copyright (C) 2023 Xibo Signage Ltd
  ~
  ~ Xibo - Digital Signage - https://xibosignage.com
  ~
  ~ This file is part of Xibo.
  ~
  ~ Xibo is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU Affero General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ any later version.
  ~
  ~ Xibo is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU Affero General Public License for more details.
  ~
  ~ You should have received a copy of the GNU Affero General Public License
  ~ along with Xibo.  If not, see <http://www.gnu.org/licenses/>.
  -->
<module>
    <id>core-menuboard-category</id>
    <name>Menu Board: Category</name>
    <author>Core</author>
    <description>Display categories from a Menu Board</description>
    <icon>fa fa-list-alt</icon>
    <class>\Xibo\Widget\MenuBoardCategoryProvider</class>
    <dataCacheKey>%menuId%_%categoryId%</dataCacheKey>
    <type>menuboard-category</type>
    <dataType>product-category</dataType>
    <showIn>layout</showIn>
    <schemaVersion>1</schemaVersion>
    <assignable>1</assignable>
    <regionSpecific>1</regionSpecific>
    <renderAs>html</renderAs>
    <defaultDuration>60</defaultDuration>
    <settings></settings>
    <properties>
        <property id="menuId" type="menuBoardSelector">
            <title>Menu</title>
            <helpText>Please select the Menu to use as a source of data for this template.</helpText>
            <rule>
                <test type="and">
                    <condition type="required"></condition>
                </test>
            </rule>
        </property>
        <property id="categoryId" type="menuBoardCategorySelector">
            <title>Category</title>
            <helpText>Please select the Category to use as a source of data for this template.</helpText>
            <dependsOn>menuId</dependsOn>
            <visibility>
                <test>
                    <condition field="menuId" type="neq"></condition>
                </test>
            </visibility>
        </property>
    </properties>
    <preview></preview>
</module>
