Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support non-restricted enum attributes #52

Open
jonathan-meier opened this issue Oct 25, 2019 · 0 comments
Open

Support non-restricted enum attributes #52

jonathan-meier opened this issue Oct 25, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@jonathan-meier
Copy link
Contributor

Consider the following simple rule attribute:

@Enum("Val1", "Val2", "Val3", restricted = false)
attr enumVal = "Val1"

CityEngine provides a drop-down menu for this enumeration with entries Val1, Val2 and Val3, but also allows to set an arbitrary value not in this list.

Serlio treats both restricted and non-restricted enums as restricted.

Task:

  • Support non-restricted enum attributes, such that a user can set arbitrary values for these attributes

Note: A simple solution would be to ignore the enum annotation on non-restricted enum attributes and simply provide an input field. This way, the user would be able to set an arbitrary value, however, the enumeration options would not be visible in the UI anymore.

@mistafunk mistafunk added the enhancement New feature or request label Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants