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

[Feature] Allow methods for Dropdown #12

Closed
WazWaz opened this issue Jan 26, 2018 · 0 comments
Closed

[Feature] Allow methods for Dropdown #12

WazWaz opened this issue Jan 26, 2018 · 0 comments

Comments

@WazWaz
Copy link

WazWaz commented Jan 26, 2018

I'm using this workaround:

    [Dropdown("TheValues")]
    public int foo;
    public static DropdownList<int> TheValues = ValuesFunction();

    DropdownList<int> ValuesFunction()
    {
        for (...) ...
    }

But it would be nicer to write:

    [Dropdown("ValuesFunction")]
    public int foo;
    ...

(or "ValuesFunction()").

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

No branches or pull requests

2 participants