-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Ability to manually select the binding view type #602
Comments
You can use https://tweakpane.github.io/docs/input-bindings/#color |
I tried but it doesn't work for lists. |
Hm, can you share the code and the Tweakpane version? It works fine on the document with the latest Tweakpane. https://tweakpane.github.io/docs/ p = new Tweakpane.Pane();
// without view: 'text'
p.addBinding(
{foo: '#f00'}, 'foo',
{
options: {red: '#f00', blue: '#00f'},
}
)
// with view: 'text'
p.addBinding(
{foo: '#f00'}, 'foo',
{
view: 'text',
}
)
// with options and view: 'text'
p.addBinding(
{foo: '#f00'}, 'foo',
{
options: {red: '#f00', blue: '#00f'},
view: 'text',
}
) |
I was setting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ATM it seems it's not possible to override the
view
selected for the values passed to thePane.addBinding
function. In some cases the heuristics behind the automatic view selection (which are based on the value type and content), are not working as expected, and such ability would provide an escape-hatch, or just a more stable behaviour.Refs #601
The text was updated successfully, but these errors were encountered: