On this page ...
Projections to be used Globally
For some concrete syntax elements you may provide a global definition, i.e. these definitions are to be used everywhere in the editor. This can only be done once, in the default editor definition. However, the global definitions can be overwritten per property.
All global projection definitions must be enclosed in curly brackets ({}) and prefixed with the keyword global.
Boolean Projections
The keywords to be used for the boolean true and false values can be defined globally, or you can choose to display boolean values as a boolean control. Every option described in Boolean Projections is allowed.
In the example below, the user will view
every boolean property as an inner-switch button with the string YES for the value true,
and NO for the value false.
// Insurance/src/defs/editor-main-default.edit#L5-L18
global {
boolean inner-switch [YES | NO] // the strings used to display a boolean value, all booleans will default be displayed as an inner switch control
// limited radio
// limited[] checkbox
// number slider // you can use the slider control as default projection for numbers, but this will not often be the preferred option
referenceSeparator [:] // the string that separates the names in a path name, e.g. pack1:cls3:part
external {
AnimatedGif,
ExternalCard,
ExternalAccordion,
ExternalDialog,
DatePicker
}
} Projections for Limited Concepts
To indicate global definitions for limited concepts you can use the keywords limited and limited[] for
single-valued properties and multi-valued properties respectively. The keyword(s) must be followed by the
options available for limited concepts, as described
in Projections for Limited Concepts.
Projections for Numbers
To indicate global definitions for properties with type number you can use the keyword number. The
keyword must be followed by the options available for numbers, as described
in Number Projections.
Reference Separator
References to other objects can consist of a series of names, like country.city.street.house. The string used to separate these names (in the example above ”.”) can be set.
Adding Names of External Components
Freon offers the possibility to include Svelte components that are defined outside of Freon. These components
are called external components. All names of external components
need to be declared in the global section.