• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingSoft demo</title>
      <script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
      <style>
        zing-grid[loading] {
          height: 17px;
        }
      </style>
    </head>
    
    <body>
      <zing-grid>
        <zg-caption>row-details column type Demo</zg-caption>
        <zg-colgroup>
          <zg-column type="row-details"></zg-column>
          <zg-column index="name"></zg-column>
          <zg-column index="role"></zg-column>
        </zg-colgroup>
        <zg-row-details>
          <template>
            <p>[[record.bio]]</p>
          </template>
        </zg-row-details>
        <zg-data data='[
            { "name": "Philip J. Fry", "role": "Delivery Boy", "bio": "Cryogenically frozen in 1999, Fry wakes up 1000 years later and joins the Planet Express crew as a delivery boy." },
            { "name": "Turanga Leela", "role": "Captain", "bio": "A skilled one-eyed pilot and the no-nonsense captain of the Planet Express ship." },
            { "name": "Bender Bending Rodriguez", "role": "Chef", "bio": "A bending unit turned chef who loves booze, cigars, and bending things." },
            { "name": "Amy Wong", "role": "Intern", "bio": "A wealthy Mars University intern studying to be a doctor of applied physics." },
            { "name": "Doctor John Zoidberg", "role": "Staff Doctor", "bio": "An alien crustacean and the ship doctor, despite questionable medical skills." },
            { "name": "Lord Nibbler", "role": "Ambassador to Earth", "bio": "A seemingly simple pet who is secretly a highly intelligent alien ambassador." }
          ]'>
        </zg-data>
      </zing-grid>
      <script>
        ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']);
      </script>
    </body>
    
    </html>
    <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingSoft demo</title>
      <script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
    </head>
    
    <body>
      <zing-grid>
        <zg-caption>row-details column type Demo</zg-caption>
        <zg-colgroup>
          <zg-column type="row-details"></zg-column>
          <zg-column index="name"></zg-column>
          <zg-column index="role"></zg-column>
        </zg-colgroup>
        <zg-row-details>
          <template>
            <p>[[record.bio]]</p>
          </template>
        </zg-row-details>
        <zg-data data='[
            { "name": "Philip J. Fry", "role": "Delivery Boy", "bio": "Cryogenically frozen in 1999, Fry wakes up 1000 years later and joins the Planet Express crew as a delivery boy." },
            { "name": "Turanga Leela", "role": "Captain", "bio": "A skilled one-eyed pilot and the no-nonsense captain of the Planet Express ship." },
            { "name": "Bender Bending Rodriguez", "role": "Chef", "bio": "A bending unit turned chef who loves booze, cigars, and bending things." },
            { "name": "Amy Wong", "role": "Intern", "bio": "A wealthy Mars University intern studying to be a doctor of applied physics." },
            { "name": "Doctor John Zoidberg", "role": "Staff Doctor", "bio": "An alien crustacean and the ship doctor, despite questionable medical skills." },
            { "name": "Lord Nibbler", "role": "Ambassador to Earth", "bio": "A seemingly simple pet who is secretly a highly intelligent alien ambassador." }
          ]'>
        </zg-data>
      </zing-grid>
    </body>
    
    </html>