Changes

UBIK Templates

948 bytes added, 24 April
/* ChildItemTemplateSelector (UWP & Xamarin) */
<tabs>
<tab name="UWP">
* Returns If the child item is classified with the [[SYSCLS_CHILDITEMTEMPLATE|child item template classification]] and carries a custom valid child item template name:** If the given item is a TaskViewModel (namely if one the associated object is configureda [[MRO_Objects_(Client)#Task|Task]]) and the TaskItemTemplate is not null, it returns that TaskItemTemplate.** Otherwise, if the given item is a TaskViewModel (namely if the associated object is a [[MRO_Objects_(Client)#Task|Task]]) & the TaskItemTemplate is null, it returns a ''UBIKProjectItemUBIKTaskItem'' template if .** If the given item is a MROViewModel and contains ProjectData (namely if the associated object is a [[MRO_Objects_(Client)#MRO_objects_with_project_information_.28WinX_only.29|MRO object with project information]])and the ProjectItemTemplate is not null, it returns that ProjectItemTemplate.** Otherwise, it returns a ''UBIKTaskItem'' template if the given item is a TaskViewModel MROViewModel contains ProjectData (namely if the associated object is a [[MRO_Objects_(Client)#TaskMRO_objects_with_project_information_.28WinX_only.29|TaskMRO object with project information]])and the ProjectItemTemplate is null, it returns a ''UBIKProjectItem'' template. ** If nothing of the above fits& the ChildItemTemplate is not null, it returns that ChildItemTemplate.** If nothing of the above fits & the ChildItemTemplate is null, it returns a ''UBIKChildItem'' template.
</tab>
<tab name="Xamarin">
* If the given ContentListItemViewModel child item is not nullclassified with the [[SYSCLS_CHILDITEMTEMPLATE|child item template classification]] and carries a valid child item template name:
** If the given item is a TaskViewModel (namely if the associated object is a [[MRO_Objects_(Client)#Task|Task]]) and the TaskItemTemplate is not null, it returns that TaskItemTemplate.
** Otherwise, if the given item is a TaskViewModel (namely if the associated object is a [[MRO_Objects_(Client)#Task|Task]]) & the TaskItemTemplate is null, it returns a ''UBIKTaskItem'' template.
** If nothing of the above fits & the ChildItemTemplate is not null, it returns that ChildItemTemplate.
** If nothing of the above fits & the ChildItemTemplate is null, it returns a ''UBIKChildItem'' template.
* Returns null if the given ContentListItemViewModel item is null.
</tab>
</tabs>
{{Hint|To get an overview of how template selectors work, please refer to [[UBIK_Templates#Template_loading_mechanism|Template loading mechanism]].}}
[[Category:Client|UBIK Templates]]
[[Category:UBIK|UBIK Templates]]
[[Category:WinX|UBIK Templates]]
=== PropertyDirectItemTemplateSelector (UWP & Xamarin) ===
257
edits