Categories

.busy()

Categories: Custom

.busy( action )

Subclass: ep

Plugin: ep.fn.busy

Description: Add or remove a busy layer to each of the set of matched elements.

  • .busy( action )

    version added: 6.11.0

    action   An action for busy layer, 'show' or 'hide'.

The .busy() method adds/removes a busy layer to/from each of the set of matched elements.

  • Show a busy layer on body.

    HTML:
    <body>
      <h1>Example</h1>
      <div>My test case ...</div>
      <div>A footer.</div>
    </body>
    
    Code:
    ep('div').busy('show');
    
    Results:
    <body>
      <h1>Example</h1>
      <div>My test case ...</div>
      <div>A footer.</div>
      <div class="ep-busy"></div>
    </body>
    
    
  • Hide a busy layer on body.

    HTML:
    <body>
      <h1>Example</h1>
      <div>My test case ...</div>
      <div>A footer.</div>
      <div class="ep-busy"></div>
    </body>
    
    Code:
    ep('div').busy('hide');
    
    Results:
    <body>
      <h1>Example</h1>
      <div>My test case ...</div>
      <div>A footer.</div>
    </body>