Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
195
rated 0 times [  198] [ 3]  / answers: 1 / hits: 19484  / 11 Years ago, wed, august 21, 2013, 12:00:00

I would like to create a button using dat.gui library. In a perfect world, this would work like this:



gui.add(button, click me);

More From » dat.gui

 Answers
2

This creates a button with text left aligned.



var obj = { add:function(){ console.log(clicked) }};

gui.add(obj,'add');

[#76236] Tuesday, August 20, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
christianu

Total Points: 481
Total Questions: 124
Total Answers: 99

Location: Trinidad and Tobago
Member since Thu, Dec 1, 2022
2 Years ago
christianu questions
;