tzk/tzk/editions/tzk/plugins/locator/$__plugins_bimlas_locator_templates_context-settings.tid
Soren I. Bjornstad 14cc96a907 check in editions directory
Although this is automatically generated, it represents a critical part
of the content of the edition which cannot be created from the content
in the repository (it's generated from a private directory on my
computer), so at this point it is appropriate to check it in.
2021-09-21 12:27:23 -05:00

54 lines
1.6 KiB
Plaintext

tags:
title: $:/plugins/bimlas/locator/templates/context-settings
type: text/vnd.tiddlywiki
\define field-of-relationship()
Tree is based on field:<br/>
<$select tiddler=<<contextState>> field="field-of-relationship" default=<<defaultFieldOfRelationship>>>
<$list filter="[locator-enlist-relationship-fields[]]" variable="currentField">
<option value=<<currentField>>>
<$list filter="[subfilter<filter-unfiltered-view-context-items>count[]]" variable="count">
(<<count>>) <<currentField>>
</$list>
</option>
</$list>
</$select>
\end
\define template-of-context-items()
Template of context items:<br/>
<$select tiddler=<<contextState>> field="template-of-context-items" default=<<__templateOfContextItems__>>>
<$list filter="[all[tiddlers+shadows]tag[$:/tags/bimlas/locator/context-item-templates]]">
<option value=<<currentTiddler>>>
<$transclude field="caption"><$view field="title"/></$transclude>
</option>
</$list>
</$select>
\end
<$list filter="[title<contextState>field:context-settings-opened[yes]]">
<div class="bimlas-locator context-settings">
<<field-of-relationship>><br/>
<<template-of-context-items>><br/>
<$checkbox
tiddler=<<contextState>>
field="invert-direction"
checked="yes"
unchecked="no"
default="no"
>
Invert direction
</$checkbox><br/>
<$checkbox
tiddler=<<contextState>>
field="allow-to-open-leaves"
checked="yes"
unchecked="no"
default="no"
>
Allow to open leaves
</$checkbox><br/>
{{$:/plugins/bimlas/locator/buttons/open-field-settings}}
</div>
</$list>