Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Settings list can use template or schema as object type #1815

Merged
merged 12 commits into from
Aug 9, 2021

Conversation

iLLiCiTiT
Copy link
Member

@iLLiCiTiT iLLiCiTiT commented Jul 12, 2021

Description

List entity can have defined object type with template or schema. That can be used to use infinite children of itself.

Changes

  • ListEntity (list) can have schema or template as "object_type"
    • template must return list of exactly one item

Example of usage

  1. Definition of list items used at multple places at one template file.
    • the same template can be used in multiple lists across schemas
  2. list can have ability of dynamically nested children because it's object type is template which may have reference to itself
    • this may be used e.g. for scriptsmenu definition or folder structure definition
    • example screenshot below

Screenshot of possible usage

image

@iLLiCiTiT iLLiCiTiT added backend type: enhancement Enhancements to existing functionality labels Jul 12, 2021
@iLLiCiTiT iLLiCiTiT self-assigned this Jul 12, 2021
@iLLiCiTiT iLLiCiTiT marked this pull request as ready for review July 12, 2021 15:42
@iLLiCiTiT iLLiCiTiT requested a review from antirotor July 12, 2021 15:42
@mkolar mkolar self-requested a review July 26, 2021 13:42
Copy link
Member

@mkolar mkolar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please add an example to the example_schema as well as readme?

@iLLiCiTiT
Copy link
Member Author

Can we please add an example to the example_schema as well as readme?

Done

@mkolar mkolar self-requested a review August 9, 2021 14:21
@iLLiCiTiT iLLiCiTiT merged commit 39ddf30 into develop Aug 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement Enhancements to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants