Fix doc typos and add Table class summary line
Correct 'A object' -> 'An object' and 'if i iss not set' -> 'if it is not set', and add a one-line summary to the Table class JSDoc.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
export type TableOptions<TRow extends object> = {
|
||||
/**
|
||||
* A object with the same properties, but all string type for the header cell values.
|
||||
* An object with the same properties, but all string type for the header cell values.
|
||||
* Used by passing an object with the keys of {@link TRow} and the name preferred. E.g. for a user:
|
||||
* ```{ id: "ID", name: "Name" }```, this makes the columns appear in the order of ID then Name.
|
||||
*/
|
||||
@@ -23,6 +23,7 @@ export type TableOptions<TRow extends object> = {
|
||||
};
|
||||
|
||||
/**
|
||||
* Abstract base class that renders typed row data as an HTML `<table>` on a web page.
|
||||
* @template TRow A type that the shape of a row should be. E.g.
|
||||
* ```
|
||||
* type User = {
|
||||
@@ -233,7 +234,7 @@ export abstract class Table<TRow extends object> {
|
||||
|
||||
/**
|
||||
* Get the message element for the table.
|
||||
* @return The HTMLElement that is used for showing messages. Or null if i iss not set.
|
||||
* @return The HTMLElement that is used for showing messages. Or null if it is not set.
|
||||
*/
|
||||
getMessageElement(): HTMLElement | null {
|
||||
return this.messageEl;
|
||||
|
||||
Reference in New Issue
Block a user