tablature
Version:
Display Tabular Data.
27 lines (26 loc) • 1.11 kB
text/xml
<types namespace="_tablature">
<type name="Replacement"
type="(value: string) => {value: string, length: number}"
closure="function(string): { value: string, length: number }"
desc="The function to use to replace values for display."/>
<type record name="Config" desc="Options for the program.">
<prop type="!Array<string>" name="keys">
Keys to print as columns.
</prop>
<prop type="!Array<!Object<string, string>>" name="data">
The array of data items to prints as rows.
</prop>
<prop opt type="!Object<string, string>" name="headings">
The display names for each column.
</prop>
<prop opt type="!Object<string, _tablature.Replacement>" name="replacements">
The map of replacement functions which will run against data items.
</prop>
<prop opt type="!Array<string>" name="centerValues">
Centre values of these column (use original keys, not headings).
</prop>
<prop opt type="!Array<string>" name="centerHeadings">
Center headings of these column (use original keys, not headings).
</prop>
</type>
</types>