Skip to content

Commit 89d35fe

Browse files
committed
Add fields to settings
1 parent 46d5b2e commit 89d35fe

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

server/documents/modules/dropdown.html.eco

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2389,6 +2389,19 @@ themes : ['Default', 'GitHub', 'Material']
23892389
<td>false</td>
23902390
<td>Can be set to an object to specify <a href="/behaviors/api.html">API settings</a> for retrieving remote selection menu content from an API endpoint</td>
23912391
</tr>
2392+
<tr>
2393+
<td>fields</td>
2394+
<td>
2395+
<div class="code" data-type="css">
2396+
fields: {
2397+
values : 'values', // grouping for all dropdown values
2398+
name : 'name', // displayed dropdown text
2399+
value : 'value' // actual dropdown value
2400+
}
2401+
</div>
2402+
</td>
2403+
<td>List mapping dropdown content to JSON Property when using API</td>
2404+
</tr>
23922405
<tr>
23932406
<td>saveRemoteData</td>
23942407
<td>true</td>

server/documents/modules/search.html.eco

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,28 @@ type : 'UI Module'
568568
<td>searchFullText</td>
569569
<td>true</td>
570570
<td>Return local results that match anywhere inside your content</td>
571-
</tr>
571+
</tr>
572+
<tr>
573+
<td>fields</td>
574+
<td>
575+
<div class="code" data-type="css">
576+
fields: {
577+
categories : 'results', // array of categories (category view)
578+
categoryName : 'name', // name of category (category view)
579+
categoryResults : 'results', // array of results (category view)
580+
description : 'description', // result description
581+
image : 'image', // result image
582+
price : 'price', // result price
583+
results : 'results', // array of results (standard)
584+
title : 'title', // result title
585+
action : 'action', // "view more" object name
586+
actionText : 'text', // "view more" text
587+
actionURL : 'url' // "view more" url
588+
}
589+
</div>
590+
</td>
591+
<td>List mapping display content to JSON property, either with API or <code>source</code>.</td>
592+
</tr>
572593
<tr>
573594
<td>searchFields</td>
574595
<td>

0 commit comments

Comments
 (0)