How to disable a button

Is there a simple way to toggle the enabled state of a button? Something like ballOptionsBlueButton.enabled = false?

Here is my code for my button:

  
-- ------------------------  
-- Ball Options Blue Button  
-- ------------------------  
  
local ballOptionsBlueButton = ui.newButton{  
default = "images/blueSelectDefault.png",  
over = "images/blueSelectHighlight.png",  
onPress = button1Press,  
onRelease = button1Release,  
text = "",  
emboss = true  
}  
  
ballOptionsBlueButton.x = 220; ballOptionsBlueButton.y = 166  
  
local function clickBallOptionsBlueButton ( event )  
 if event.phase == "ended" then  
 print ("select blue ball for player")  
 selectBall("blue")  
 --cancelTransitions()  
 --director:changeScene("instructions","fade",0,0,0)  
 end  
end  
  
ballOptionsBlueButton:addEventListener("touch",clickBallOptionsBlueButton)  
  
ballOptionsPanel:insert(ballOptionsBlueButton)  

Btw, do I need the following?

onPress = button1Press,
onRelease = button1Release,

[import]uid: 7863 topic_id: 4285 reply_id: 304285[/import]