Đi tới nội dung
Mục
Fiesta

list-grid

Nguyên thể giao diện Những hình thù mà một thành phần không thể là, vì chúng bọc lấy một phần thân chỉ bên gọi mới biết: thẻ, lưới dữ liệu, menu, và khung riêng của các lớp vỏ.

Bộ từ vựng thật của bảng dữ liệu: thẻ định các cột một lần, các hàng chỉ chọn ô.

Mỗi ví dụ đều hoạt động thật, nhưng các liên kết trong đó không dẫn đến đâu. HTML hiển thị mã đánh dấu để sao chép.

Xem trước
<div rst-box-head>
  <h2 id="orders-title">Đơn hàng</h2>
</div>
<div rst-card role="table" aria-labelledby="orders-title" style="--rst-cols: 2fr 110px var(--rst-col-menu)">
  <div rst-lrow="head" role="row">
    <span role="columnheader">Đơn hàng</span>
    <span class="rst-m-hide" role="columnheader">Trạng thái</span>
    <span role="columnheader"><span class="rst-sr-only">Thao tác</span></span>
  </div>
  <div rst-lrow role="row">
    <span role="rowheader"><a class="rst-nm" href="/orders/AB3PX"><bdi>Grace Hopper</bdi>
        <small>AB3PX · <bdi>grace@example.com</bdi></small>
      </a></span>
    <span class="rst-m-hide rst-cell-mut" role="cell">Đã thanh toán</span>
    <span role="cell">
      <details rst-row-menu name="rst-menus">
        <summary aria-label="Thao tác cho Grace Hopper">
          <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>
        </summary>
        <div rst-row-menu-panel>
          <a href="/orders/AB3PX">Xem</a>
          <hr>
          <a class="rst-danger" href="/orders/AB3PX/refund">Hoàn tiền đơn hàng…</a>
        </div>
      </details>
    </span>
  </div>
  <p rst-no-match role="row">
    <span role="cell" aria-colspan="3">Không có đơn hàng nào khớp. <a href="/orders">Xóa bộ lọc</a></span>
  </p>
</div>
<p rst-count-line>Đang hiển thị <strong>1–20</strong> trên <strong>412</strong></p>

Trong một ứng dụng, phần này sẽ đi tới /orders, /orders/AB3PX, /orders/AB3PX/refund. Ở đây các liên kết và biểu mẫu của nó không dẫn đến đâu.