Table te pawh a awm
Bootstrap hmanga table-te opt-in styling (JavaScript plugin-a an hman tam dan ngaihtuah chuan) documentation leh entirnan.
Entirna te
Calendar leh date picker ang chi third-party widget hrang hranga table hman tam tak avang hian kan table te chu opt-in turin kan design a ni. Base class .table
chu any ah add mai la <table>
, chutah chuan custom styles emaw kan modifier class hrang hrang included hmangin extend rawh.
Table markup bulpui ber hmangin, .table
Bootstrap-a -based tables awm dan chu hetiang hi a ni. Table style zawng zawng hi Bootstrap 4 ah hian inherited a ni a , chu chu nested table eng pawh chu parent ang bawkin style a ni ang tihna a ni.
# a ni. | Hmasa ber | Hnuhnung ber | Chelh |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | chu Sava chu a ni | @twitter ah a awm |
Chu bâkah, rawngte chu i invert thei bawk a—background dum-a thuziak eng tak tak hmangin—chu hmangin .table-dark
.
# a ni. | Hmasa ber | Hnuhnung ber | Chelh |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | chu Sava chu a ni | @twitter ah a awm |
Table head thlan theih a ni
Table leh dark table ang bawkin modifier class .thead-light
emaw .thead-dark
hmang la, <thead>
s chu light emaw dark gray emaw angin a lang thei ang.
# a ni. | Hmasa ber | Hnuhnung ber | Chelh |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | chu Sava chu a ni | @twitter ah a awm |
# a ni. | Hmasa ber | Hnuhnung ber | Chelh |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | chu Sava chu a ni | @twitter ah a awm |
Striped row hrang hrang a awm
.table-striped
A chhunga table row eng pawhah zebra-striping dah belh nan hmang ang che <tbody>
.
# a ni. | Hmasa ber | Hnuhnung ber | Chelh |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | chu Sava chu a ni | @twitter ah a awm |
# a ni. | Hmasa ber | Hnuhnung ber | Chelh |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | chu Sava chu a ni | @twitter ah a awm |
Table border nei a ni
.table-bordered
Table leh cell sir zawng zawnga border awmte tan add rawh .
# a ni. | Hmasa ber | Hnuhnung ber | Chelh |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | @twitter ah a awm |
# a ni. | Hmasa ber | Hnuhnung ber | Chelh |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | @twitter ah a awm |
Border nei lo table
.table-borderless
Table border nei lo tan chuan add rawh .
# a ni. | Hmasa ber | Hnuhnung ber | Chelh |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | @twitter ah a awm |
.table-borderless
dark table-ah pawh hman theih a ni.
# a ni. | Hmasa ber | Hnuhnung ber | Chelh |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | @twitter ah a awm |
Hoverable rows a awm bawk
.table-hover
A chhunga table row hrang hranga hover state enable turin Add rawh <tbody>
.
# a ni. | Hmasa ber | Hnuhnung ber | Chelh |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | @twitter ah a awm |
# a ni. | Hmasa ber | Hnuhnung ber | Chelh |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | @twitter ah a awm |
Table te tak te
.table-sm
Cell padding chu a chanvea then la, table compact zawka siam turin dah rawh .
# a ni. | Hmasa ber | Hnuhnung ber | Chelh |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | @twitter ah a awm |
# a ni. | Hmasa ber | Hnuhnung ber | Chelh |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | @twitter ah a awm |
Contextual class hrang hrang te
Table row emaw cell pakhat zel emaw color turin contextual class hmang ang che.
Pawl | Heading tih a ni | Heading tih a ni |
---|---|---|
Harhvang | Pindan | Pindan |
Hlawhchhamna | Pindan | Pindan |
Hmasa ber | Pindan | Pindan |
Secondary lam a ni | Pindan | Pindan |
Hlawhtling | Pindan | Pindan |
Hlauhawm | Pindan | Pindan |
Vaulawkna | Pindan | Pindan |
Info | Pindan | Pindan |
Eng | Pindan | Pindan |
Thim | Pindan | Pindan |
Dark table nen hian regular table background variant a awm lo a, mahse, style inang lo tak tak neih theih nan text emaw background utility emaw i hmang thei bawk.
# a ni. | Heading tih a ni | Heading tih a ni |
---|---|---|
1. a ni | Pindan | Pindan |
2. 2. | Pindan | Pindan |
3. A ni | Pindan | Pindan |
4. 4. | Pindan | Pindan |
5. 5. | Pindan | Pindan |
6. 6. | Pindan | Pindan |
7. 7.1 | Pindan | Pindan |
8. A ni | Pindan | Pindan |
9. A ni | Pindan | Pindan |
Assistive technology-te hnena awmzia thlentu
awmzia belhchhah nan color hman hian hmuh theiha hriattirna chauh a pe a, chu chu assistive technology hmangtute hnenah a thlen dawn lo – screen reader ang chi te. Color hmanga tarlan information chu a thupui a\ang ngeia lang (entir nan, hmuh theih thuziak), a nih loh leh kawng dang hmanga telh a nih theih nan enfiah rawh, chu chu .sr-only
class nena thup belh thuziak ang chi a ni.
Responsive table siam la, any .table
with wrapping la, breakpoint .table-responsive{-sm|-md|-lg|-xl}
tinah table chu horizontal-in max-width
576px, 768px, 992px, leh 1120px thleng (mahse tel lovin) a scroll tir ang che.
Browser-te hian tunah hian range context queries an support loh avangin, heng tehkhin thute atan hian value dik zawk hmangin fractional width nei prefix min-
lehmax-
viewport-te limitation (chu chu high-dpi device-a condition thenkhat hnuaiah a thleng thei, entirnan) kan thawk ho tih hre reng ang che .
Caption te pawh a awm
A <caption>
hian table pakhata heading ang maiin a thawk a. Screen reader neitute chu table zawng chhuakin a chungchang an hriatthiam theih nan leh chhiar duh leh duh loh an rel theih nan a pui a ni.
# a ni. | Hmasa ber | Hnuhnung ber | Chelh |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | chu Sava chu a ni | @twitter ah a awm |
Chhanna pe thei table te
Responsive table hmang hian awlsam takin table te chu horizontal-a scroll theih a ni. Viewport zawng zawngah table eng pawh responsive turin siam la, a .table
with wrapping hmangin siam rawh .table-responsive
. A nih loh leh, responsive table neih theihna tur breakpoint tam ber thlang la, hmangin .table-responsive{-sm|-md|-lg|-xl}
.
Vertical clipping/truncation tih a ni
Responsive tables make use of overflow-y: hidden
, chu chuan table hnuai lam emaw, chunglam emaw atanga chhuak content eng pawh a clip off thin. A bik takin hei hian dropdown menu leh third-party widget dangte a clip off thei a ni.
A chhang let fo thin
Breakpoint tinah, .table-responsive
table horizontal-a scroll nan hmang ang che.
# a ni. | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni |
---|---|---|---|---|---|---|---|---|---|
1. a ni | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan |
2. 2. | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan |
3. A ni | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan |
Breakpoint bik a ni
.table-responsive{-sm|-md|-lg|-xl}
Breakpoint bik thlenga responsive table siam nan a tul angin hmang ang che. Chu breakpoint atang chuan a chung lam atang chuan table chu a awm dan pangngaiin a awm ang a, horizontal-in a scroll lo vang.
Heng table te hi an responsive style te chu viewport width bik a apply hma loh chuan broken angin a lang thei.
# a ni. | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni |
---|---|---|---|---|---|---|---|---|
1. a ni | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan |
2. 2. | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan |
3. A ni | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan |
# a ni. | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni |
---|---|---|---|---|---|---|---|---|
1. a ni | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan |
2. 2. | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan |
3. A ni | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan |
# a ni. | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni |
---|---|---|---|---|---|---|---|---|
1. a ni | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan |
2. 2. | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan |
3. A ni | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan |
# a ni. | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni | Heading tih a ni |
---|---|---|---|---|---|---|---|---|
1. a ni | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan |
2. 2. | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan |
3. A ni | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan | Pindan |