how to code activate/deactive button of custom plugin within backend?

how to code activate/deactive button of custom plugin within backend?