Skip to main content

List property

Layer definition#

players:
attachedTo: document
type: list
label:
en: Select player
fr: Choisissez un joueur
panelGroup:
en: Section
fr: Section
value: false
value: ""
listDataClass: "App\\Connector\\CafeCommerceOL\\MVPConnector"
listDataMethod: "listData"
listDataParameters:
dataType: "players"
hideFromPanel: false
PropertyRequiredUsage
playersyesAn unique identifier defining the property
attachedToyesThe layer the property should be attached to (it could be the document)
typeyesThe property type (should be list)
labelyesA translatable property defining the property name
panelGroupyesA translatable property defining the form controls group in the panel
valueyesThe value of the property
listDataClassyesThe class that manages the method to get the list data. Could be the native HelloSet class for HelloDB content, or a custom class
listDataMethodyesThe methods that returns the content to get the list data. Could be the native HelloSet method for HelloDB content, or a custom method
listDataParameters-A list of parameters to be provided to the method to get the list data. Could define the fields to use for HelloDB content
hideFromPanel-Allows to hide the controls of the property in the panel. Useful if the layer should be controlled through another property