new Toggle()
A toggle object is returned from UCASUtilities.toggle.create().
- Source:
Example
toggleRef = UCASUtilities.toggle.create('my-id', function(){console.log('show')}, function(){console.log('hide')}, true)
toggleRef.show()
toggleRef.hide()