whole_func_string: function(context) {
        context.icon = 'loading';
        context.disabled = true;
        if (this.props.loadingMessage) {
          context.children = this.props.loadingMessage;
        }
      }
func_code_string: function(context) {
        context.icon = 'loading';
        context.disabled = true;
        if (this.props.loadingMessage) {
          context.children = this.props.loadingMessage;
        }
      }
func_documentation_string: apply a loading state to a button