सामग्री पर जाएँ
अनुभाग
Fiesta

data-table

प्रदर्शन वे छोटे शब्दावली टुकड़े जिनसे स्क्रीन जुड़ती है: स्थिति, पहचान, प्रगति, डेटा तालिकाएँ और चार्ट, और चेतावनी का इकलौता रूप।

उन संख्याओं के लिए नेटिव तालिका जिनकी लोग तुलना करते हैं। अगर तालिका स्क्रीन से चौड़ी हो, तो उसका कार्ड दाएँ-बाएँ स्क्रॉल होता है, इसलिए फ़ोन पर भी हर स्तंभ बना रहता है और पंक्ति शीर्षक शुरुआत में टिके रहते हैं। किसी स्तंभ को क्रमबद्ध करने लायक बनाने के लिए, उसके शीर्षक को उस स्तंभ के हिसाब से क्रमबद्ध सूची से लिंक करें।

हर उदाहरण असली है, पर उसके लिंक कहीं नहीं ले जाते। HTML कॉपी करने के लिए मार्कअप दिखाता है।

किसी संख्या से क्रमबद्ध

पूर्वावलोकन
<div rst-box-head>
  <h2 id="sales-h">हफ़्ते के हिसाब से बिक्री</h2>
</div>
<div rst-card rst-table-scroll tabindex="0" role="region" aria-labelledby="sales-h">
  <table rst-table aria-labelledby="sales-h">
    <thead>
      <tr>
        <th scope="col">हफ़्ता</th>
        <th scope="col" rst-num aria-sort="descending">
          <a href="/sales?sort=sold&amp;dir=asc">बिके<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg></a>
        </th>
        <th scope="col" rst-num>
          <a href="/sales?sort=target&amp;dir=desc">लक्ष्य<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg></a>
        </th>
        <th scope="col" rst-num>रिफ़ंड</th>
        <th scope="col" rst-num>आय</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row">3</th>
        <td rst-num>260</td>
        <td rst-num>600</td>
        <td rst-num>5</td>
        <td rst-num>€6,240</td>
      </tr>
      <tr>
        <th scope="row">4</th>
        <td rst-num>240</td>
        <td rst-num>600</td>
        <td rst-num>1</td>
        <td rst-num>€5,760</td>
      </tr>
      <tr>
        <th scope="row">2</th>
        <td rst-num>180</td>
        <td rst-num>600</td>
        <td rst-num>0</td>
        <td rst-num>€4,320</td>
      </tr>
      <tr>
        <th scope="row">1</th>
        <td rst-num>120</td>
        <td rst-num>600</td>
        <td rst-num>2</td>
        <td rst-num>€2,880</td>
      </tr>
    </tbody>
    <tfoot>
      <tr>
        <th scope="row">कुल</th>
        <td rst-num>800</td>
        <td rst-num>2,400</td>
        <td rst-num>8</td>
        <td rst-num>€19,200</td>
      </tr>
    </tfoot>
  </table>
</div>

किसी ऐप में यह /sales?sort=sold&dir=asc, /sales?sort=target&dir=desc तक पहुँचता। यहाँ इसके लिंक और फ़ॉर्म कहीं नहीं जाते।

घनी, स्थिर शीर्ष पंक्ति के साथ

rst-table-scroll="bounded" ऊँचाई सीमित करता है, और शीर्ष पंक्ति अपनी जगह टिकी रहती है जबकि बाकी पंक्तियाँ उसके नीचे स्क्रॉल होती हैं।

पूर्वावलोकन
<div rst-box-head>
  <h2 id="sales-h">हफ़्ते के हिसाब से बिक्री</h2>
</div>
<div rst-card rst-table-scroll="bounded" tabindex="0" role="region" aria-labelledby="sales-h">
  <table rst-table="dense" aria-labelledby="sales-h">
    <thead>
      <tr>
        <th scope="col">हफ़्ता</th>
        <th scope="col" rst-num>बिके</th>
        <th scope="col" rst-num>लक्ष्य</th>
        <th scope="col" rst-num>रिफ़ंड</th>
        <th scope="col" rst-num>आय</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row">1</th>
        <td rst-num>120</td>
        <td rst-num>600</td>
        <td rst-num>2</td>
        <td rst-num>€2,880</td>
      </tr>
      <tr>
        <th scope="row">2</th>
        <td rst-num>180</td>
        <td rst-num>600</td>
        <td rst-num>0</td>
        <td rst-num>€4,320</td>
      </tr>
      <tr>
        <th scope="row">3</th>
        <td rst-num>260</td>
        <td rst-num>600</td>
        <td rst-num>5</td>
        <td rst-num>€6,240</td>
      </tr>
      <tr>
        <th scope="row">4</th>
        <td rst-num>240</td>
        <td rst-num>600</td>
        <td rst-num>1</td>
        <td rst-num>€5,760</td>
      </tr>
      <tr>
        <th scope="row">5</th>
        <td rst-num>390</td>
        <td rst-num>600</td>
        <td rst-num>3</td>
        <td rst-num>€9,360</td>
      </tr>
      <tr>
        <th scope="row">6</th>
        <td rst-num>610</td>
        <td rst-num>600</td>
        <td rst-num>4</td>
        <td rst-num>€14,640</td>
      </tr>
      <tr>
        <th scope="row">7</th>
        <td rst-num>650</td>
        <td rst-num>600</td>
        <td rst-num>0</td>
        <td rst-num>€15,600</td>
      </tr>
      <tr>
        <th scope="row">8</th>
        <td rst-num>690</td>
        <td rst-num>600</td>
        <td rst-num>2</td>
        <td rst-num>€16,560</td>
      </tr>
    </tbody>
  </table>
</div>

कोई पंक्ति मेल नहीं खाती

जब कोई पंक्ति मेल नहीं खाती, तो शीर्ष पंक्ति अपनी जगह बनी रहती है और एक कोशिका बताती है कि कुछ भी मेल नहीं खाता। ख़ाली स्थिति उस तालिका के लिए है जिसमें कभी पंक्तियाँ रही ही नहीं।

पूर्वावलोकन
<div rst-box-head>
  <h2 id="sales-h">हफ़्ते के हिसाब से बिक्री</h2>
</div>
<div rst-card rst-table-scroll tabindex="0" role="region" aria-labelledby="sales-h">
  <table rst-table aria-labelledby="sales-h">
    <thead>
      <tr>
        <th scope="col">हफ़्ता</th>
        <th scope="col" rst-num>बिके</th>
        <th scope="col" rst-num>लक्ष्य</th>
        <th scope="col" rst-num>रिफ़ंड</th>
        <th scope="col" rst-num>आय</th>
      </tr>
    </thead>
    <tbody>
      <tr rst-table-empty>
        <td colspan="5">कोई हफ़्ता मेल नहीं खाता। <a href="/sales">फ़िल्टर हटाएँ</a></td>
      </tr>
    </tbody>
  </table>
</div>

किसी ऐप में यह /sales तक पहुँचता। यहाँ इसके लिंक और फ़ॉर्म कहीं नहीं जाते।