@JasonLee12345 wrote:
I know that you can use go.GraphObject.make to create a 'CheckBox' and usually people do '_doClick' call to execute some code. But if there is a way of getting the status of the current check box so that _doClick can do different logics?
${ 'CheckBox', 'check1', { '_doClick': (e, obj) => { if (this check box is checked?) {} else {} } } }
So my problem is how to determine the current state of the checkbox as the
if
logic in the code. Is that possible that '_doClick' could be changed to 'checked' and 'unchecked' so that makes the developers more easier?
Posts: 1
Participants: 1