ConfigurationItem

Description

The ConfigurationItem object contains one setting. DataObject.name will be printed as description. DataObject.dataType defines how the data is treated. DataObject.view contains additional properties to control for example if the element is hidden.

› Inherits:

DataObject

Overview

Properties

Methods

Signals

Enumerations

Properties

serializationDisabled

This property holds whether the item is excluded from data serialization and deserialization. This can be used to override predefined configuration properties to be controlled programmatically instead of a user interface (view).

› Type:

Boolean

› Default:

false

› Signal:

serializationDisabledChanged()

› Attributes:

Writable

Example

import InCore.Foundation 2.7

Application {
    Configuration {
        id: config
        name: "InGraf"
        objectId: "ingraf"

        ConfigurationObject {
            id: cfgSmtpSettings
            objectId: "smtpSettings"
            ConfigurationItem {
                id: cfgSmtpServer
                objectId: "smtpServer"
                name: "SMTP server"
                view {
                    widget: DataObjectView.TextInput
                    orderIndex: 11
                    widgetWidth: 50
                }
            }
        }
    }

    onCompleted: console.log("x" + cfgSmtpServer.data ?? "")

}