/** * * add loader to the button */ public static function addLoaderToButton($text = "Saving...") { self::$addLoader = true; self::$loaderText = $text; }