• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingGrid Demo</title>
      <script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
      <style>
        html,
        body {
          height: 100%;
          width: 100%;
          margin: 0;
          padding: 0;
        }
    
        zing-grid[loading] {
          height: 686px;
        }
      </style>
    </head>
    
    <body>
      <zing-grid caption="Current Pipelines">
        <zg-data data='[
            {
              "status": "success",
              "branch": "dev",
              "username": "chocolateRainGuy",
              "commitId": "1582393",
              "runTime": "4:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "failed",
              "branch": "master",
              "username": "jennaMarbles",
              "commitId": "32532315",
              "runTime": "0:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "success",
              "branch": "master",
              "username": "starWarsKid",
              "commitId": "cd34123as",
              "runTime": "4:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "pending",
              "branch": "ci-integration",
              "username": "dramticLookGopher",
              "commitId": "aaf1234s",
              "runTime": "1:23",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "failed",
              "branch": "dev-unit-tests",
              "username": "leeroyJenkins",
              "commitId": "2345623",
              "runTime": "0:09",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "success",
              "branch": "master",
              "username": "britneySpears",
              "commitId": "cd34123as",
              "runTime": "4:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "failed",
              "branch": "master",
              "username": "numaNumaGuy",
              "commitId": "62562345",
              "runTime": "0:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            }
          ]'></zg-data>
        <zg-colgroup>
          <zg-column index="status"></zg-column>
          <zg-column index="branch"></zg-column>
          <zg-column index="runTime"></zg-column>
          <zg-column index="commitId"></zg-column>
          <zg-column index="avatar" type="image" content-width="75"></zg-column>
          <zg-column index="username"></zg-column>
          <zg-column type="custom">
            <select>
              <option value="1">Restart Build</option>
              <option value="2">Reset Cache</option>
            </select>
          </zg-column>
        </zg-colgroup>
      </zing-grid>
      <script>
        ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']); // window:load event for Javascript to run after HTML
        // because this Javascript is injected into the document head
        window.addEventListener('load', () => {
          // Javascript code to execute after DOM content
        });
      </script>
    </body>
    
    </html>
    <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingGrid Demo</title>
      <script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
    </head>
    
    <body>
      <zing-grid caption="Current Pipelines">
        <zg-data data='[
            {
              "status": "success",
              "branch": "dev",
              "username": "chocolateRainGuy",
              "commitId": "1582393",
              "runTime": "4:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "failed",
              "branch": "master",
              "username": "jennaMarbles",
              "commitId": "32532315",
              "runTime": "0:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "success",
              "branch": "master",
              "username": "starWarsKid",
              "commitId": "cd34123as",
              "runTime": "4:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "pending",
              "branch": "ci-integration",
              "username": "dramticLookGopher",
              "commitId": "aaf1234s",
              "runTime": "1:23",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "failed",
              "branch": "dev-unit-tests",
              "username": "leeroyJenkins",
              "commitId": "2345623",
              "runTime": "0:09",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "success",
              "branch": "master",
              "username": "britneySpears",
              "commitId": "cd34123as",
              "runTime": "4:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "failed",
              "branch": "master",
              "username": "numaNumaGuy",
              "commitId": "62562345",
              "runTime": "0:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            }
          ]'></zg-data>
        <zg-colgroup>
          <zg-column index="status"></zg-column>
          <zg-column index="branch"></zg-column>
          <zg-column index="runTime"></zg-column>
          <zg-column index="commitId"></zg-column>
          <zg-column index="avatar" type="image" content-width="75"></zg-column>
          <zg-column index="username"></zg-column>
          <zg-column type="custom">
            <select>
              <option value="1">Restart Build</option>
              <option value="2">Reset Cache</option>
            </select>
          </zg-column>
        </zg-colgroup>
      </zing-grid>
    </body>
    
    </html>
    html,
    body {
      height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;
    }
    // window:load event for Javascript to run after HTML
    // because this Javascript is injected into the document head
    window.addEventListener('load', () => {
      // Javascript code to execute after DOM content
    });