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

change the title of properties #23

Open
easyfrog opened this issue Nov 16, 2021 · 1 comment
Open

change the title of properties #23

easyfrog opened this issue Nov 16, 2021 · 1 comment

Comments

@easyfrog
Copy link

now the title of the control is same as property's name.
so how to custom the title?

like .name(title) method of dat.gui

@easyfrog easyfrog reopened this Nov 16, 2021
@easyfrog
Copy link
Author

I tried use: {value} object, but this only works with number value.

prop: {
    $label: 'This is my property name',
    value: 12 
}

if change the value type to string or boolean , It will give me a folder

also the wrong result:

{"a":1,"b":2,"nested":{"c":3,"d":4,"kao":12,"fuc":{"value":"8888"},"boo":{"value":true}}}

image

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

1 participant