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

LeBlender Editor top-level property on whole set of items #95

Open
lcichanowicz opened this issue Jun 25, 2018 · 2 comments
Open

LeBlender Editor top-level property on whole set of items #95

lcichanowicz opened this issue Jun 25, 2018 · 2 comments

Comments

@lcichanowicz
Copy link

lcichanowicz commented Jun 25, 2018

I suspect this is a feature request, but I hope I am wrong. How can I add a property to a Grid Editor, which uses the LeBlender Editor, that is not on each item, but applies to the whole set of items?

Ideally, I want to add a Dropdown property editor, with prevalues, to the set of items.

Each LeBlender Editor item will have two properties:

  1. Item Label (Textstring)
  2. Item Body Text (Richtext editor)

I want a property "above" the items, on the whole set.
Item Layout (Dropdown)
...with choices for Tab, Accordion, and Slider.

This will allow the content manager to try a layout, and change it to another.

@soreng
Copy link
Contributor

soreng commented Jun 25, 2018

Hi, you could just implement it on all, an let the editor pick the layout for the first item?
Another method could be to add the items as nested content or stacked content, then you'd only have a single item in your LeBlenderModel-collection.

@lcichanowicz
Copy link
Author

lcichanowicz commented Jun 26, 2018

Thanks for the suggestions, @soreng. I want to avoid an obvious workaround (obvious to the content manager) such as having the dropdown on all items, but only honoring the value set on the first.

I briefly considered nested content, but I wrongly assumed I would be giving up the LeBlender editor. I just discovered that it is a property editor available to me for a new data type! I should have checked.

I was just thinking of implementing a custom grid editor in LeBlender.

leblender custom grid editor

The docs seem scant, but I'll try.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants