Entry configuration
For reading/editing the value of an entry property or merged value in the case of multiple entries, we use the following non-editable/editable block configurations explained in Introduction to Details Pane Templates
Entry property = All other properties
Single-selection
read
Use a combo-box if one can find the field by keyboard
{{combo-box model=model field="XXX" editable=false}}
Use a select-box if one cannot find the field by keyboard such as the DAVID/DISTRIBUTIONENDPOINTS which uses images not text.
{{select-box model=model field="XXX" editable=false}}
Use a text-box if there is no specific option to pick from.
{{text-box model=model field="XXX" editable=false}}
Use a date-time for date time properties such as CreateDate (this will become the date-time with editable=false).
{{format-date model.CreateDate}}
Use a check-box for boolean properties such as the Perfect flag (we’ll streamline the configuration later).
{{check-box model=model directEditFieldName="Perfect" defaultLayout=false checkedNumeric=model.Perfect backgroundColorOn="lightblue" icon="fas fa-thumbs-up" label="PERFECT" iconFontSize="25px" boxWidth="100px"}}
For numbers, we use for now a converter (we’ll develop a number-box with an input format)
e.g.
{{format-filesize model.FileSize}}
edit
Same as read but model=editModel (instead of model=model) and remove editable=false.
text-box
for now we use an input text, not the text-box component
{{input value=editModel.XXX type="text"}}
date-time edit configuration not yet streamlined
{{date-time value=editModel.XXX format="L"}}
check-box edit configuration not yet streamlined
{{check-box defaultLayout=false readonly=false checkedNumeric=editModel.Perfect backgroundColorOn="lightblue" icon="fas fa-thumbs-up" label="PERFECT" iconFontSize="25px" boxWidth="100px"}}
number-box
we can use an input number, use case not yet used
Multi-selection
read
Same as single-selection but model=editModelArray
text-box is not yet available for that use case, use bulk-text-box for now
date-time is not yet available for that use case, use merge-date-time for now
check-box is not yet available for that use case, use merge-check-box for now
No use case for numbers yet
edit
Same as single-selection edit but model=editModelArray, and we optionally use a checkbox to enable/disable the change of the property, then add stateChanged=$changeXXX.
<tr>
<td>
{{check-box checked=$changeXXX}}<label>Change XXX:</label>
</td>
<td class="editable-field">
<.... see possible block below>
</td>
</tr>
XXX is the property name such as Distribution or Title.
XXX can also be a custom field X/Y, where $changeXXX becomes $changeX$Y.
e.g. for custom field DAVID/DISTRIBUTIONENDPOINTS, use stateChanged=$changeDAVID$DISTRIBUTIONENDPOINTS
Default specific behaviors of comboboxes/selectboxes
For some entry properties, we preset some default behaviors that you can overwrite in the details pane template.
e.g. entry.Distribution is by default in multiselection, you can enforce single selection as follows
{{combo-box model=editModel field="Distribution" multiSelection=false}}
Some combobox/selectbox behaviors are used only for some entry properties.
See the descriptions and possible values of specific behaviors below.
Combobox/Selectbox behaviors | Possible values | Description |
---|---|---|
allowEmpty | true or false | adds an empty option in the drop down for setting the value to an empty string |
ariaLabel | any string | ARIA message when focusing on the control |
distinct | true or false | only for Author and Editor to use distinct values from the database instead of the list of possible definition values |
multiSelection | true or false | if true, allows to multiselect values. |
source | stringified list of strings | A subnet of options |
See the list of specific behaviors that you can overwrite per entry property :
Entry property | Default combobox behaviors |
---|---|
Class |
|
Ressort |
|
SubRessort |
|
Entry definition properties | Default combobox behaviors |
---|---|
other definition properties see available definition fields in Adding combo-box component and binding to dynamic data sources |
|
Author |
|
Broadcast |
|
Distribution |
|
Editor |
|
Motive |
|
Entry custom fields | Default combobox/selectbox behaviors |
---|---|
all custom fields |
|
DAVID/DISTRIBUTIONENDPOINTS it uses a select-box |
|