Blender python layout button disabled?

so I have this line of code which adds a button to my custom panel

row.operator("aligncenter", text="Align Center")

However, I would like to make it disabled (in some cases)
Which parameters do I use, and is there a site where I can get such info (blender python API is very incomplete)

You’ll find UI docs here http://www.blender.org/documentation/250PythonDoc/bpy.types.UILayout.html

To make something disabled just do row.active = False or op = row.operator then op.active = False or use .enabled = False (the difference is one lets the user change it while it’s disabled and the other doesn’t.)

thanks, thats exactly what I needed