Make code samples of Button API reference runnable