Closed Sija closed 9 months ago
You can use view: 'text'
for disabling color detection:
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 view: "list"
, with view: "text"
though it works correctly, thanks!
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