Rich-Harris / svelte-knobby

MIT License
201 stars 16 forks source link

change the title of properties #23

Open easyfrog opened 2 years ago

easyfrog commented 2 years ago

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 commented 2 years ago

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