HTML DOM TableRow Object
TableRow အရာဝတ္ထု
TableRow အရာဝတ္ထုသည် HTML <tr> ဒြပ်စင်ကို ကိုယ်စားပြုသည်။
TableRow Object ကို ဝင်ရောက်ကြည့်ရှုပါ။
getElementById() ကို အသုံးပြု၍ <tr> ဒြပ်စင်တစ်ခုကို သင်ဝင်ရောက်နိုင်သည် ။
ဥပမာ
var x = document.getElementById("myTr");
အကြံပြုချက်- ဇယားတစ်ခု၏ အတန်း များစုစည်းမှု မှတစ်ဆင့် ရှာဖွေခြင်းဖြင့် <tr> ဒြပ်စင်တစ်ခုကိုလည်း ဝင်ရောက်ကြည့်ရှု နိုင်ပါသည်။
TableRow Object တစ်ခုကို ဖန်တီးပါ။
document.createElement() နည်းလမ်းကို အသုံးပြု၍ <tr> element တစ်ခုကို ဖန်တီးနိုင်သည်-
ဥပမာ
var x = document.createElement("TR");
TableRow Object Collections
Collection | Description |
---|---|
cells | Returns a collection of all <td> or <th> elements in a table row |
TableRow Object Properties
Property | Description |
---|---|
align | Not supported in HTML5. Use style.textAlign instead. Sets or returns the horizontal alignment of the content within a table row |
bgColor | Not supported in HTML5. Use
style.backgroundColor instead. Sets or returns the background color of a table row |
ch | Not supported in HTML5. Sets or returns an alignment character for cells in a table row |
chOff | Not supported in HTML5. Sets or returns the horizontal offset of the ch property |
height | Not supported in HTML5. Use style.height instead. Sets or returns the height of a table row. |
rowIndex | Returns the position of a row in the rows collection of a table |
sectionRowIndex | Returns the position of a row in the rows collection of a tbody, thead, or tfoot |
vAlign | Not supported in HTML5. Use
style.verticalAlign instead. Sets or returns the vertical alignment of the content within a table row |
TableRow Object Methods
Method | Description |
---|---|
deleteCell() | Deletes a cell from the current table row |
insertCell() | Inserts a cell into the current table row |
စံသတ်မှတ်ချက်များနှင့် အစီအစဉ်များ
TableRow အရာဝတ္ထုသည် စံ ဂုဏ်သတ္တိများ နှင့် ဖြစ်ရပ်များ ကို ပံ့ပိုး ပေးပါသည်။
ဆက်စပ်စာမျက်နှာများ
HTML သင်ခန်းစာ- HTML ဇယားများ
HTML ရည်ညွှန်း- HTML <tr> တဂ်