Topic: MDB4 change button to loading...

matthias_deox pro asked 6 years ago

Does this work with MDB4? I think I read somewhere .button('loading') isn't supported anymore by newer versions of bootstrap.

Michal Szymanski staff answered 6 years ago

There isn't such a functionality in MDB.

matthias_deox pro answered 6 years ago

Strange, works perfectly for me. Basically it only displays this code:
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<title>Example of Bootstrap 3 Stateful Buttons</title>
<link rel="stylesheet" href="">
<link rel="stylesheet" href="">
<script src=""></script>
<script src=""></script>
<script type="text/javascript">  
$(function() { 
        $(this).button('loading').delay(1000).queue(function() {
<style type="text/css">
    	margin: 20px;
<div class="bs-example">
    <button type="button" class="btn btn-default" data-loading-text="Loading ...">Default</button>
    <button type="button" class="btn btn-primary" data-loading-text="Loading...">Primary</button>
    <button type="button" class="btn btn-info" data-loading-text="Loading...">Info</button>
    <button type="button" class="btn btn-success" data-loading-text="Loading...">Success</button>
    <button type="button" class="btn btn-warning" data-loading-text="Loading...">Warning</button>
    <button type="button" class="btn btn-danger" data-loading-text="Loading...">Danger</button>
    <button type="button" class="btn btn-link" data-loading-text="Loading...">Link</button>

Michal Szymanski staff answered 6 years ago

Provided link doesn't work, at least right now.

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.


Specification of the issue

  • User: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No