Skip to content

Commit

Permalink
docs: correct drawHorizontalLine reference reference (closes #54)
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Sep 4, 2018
1 parent d56164c commit d160abd
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .README/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ data = [
* Used to dynamically tell table whether to draw a line separating rows or not.
* The default behavior is to always return true.
*
* @typedef {function} drawJoin
* @typedef {function} drawHorizontalLine
* @param {number} index
* @param {number} size
* @return {boolean}
Expand All @@ -70,7 +70,7 @@ data = [
* @property {table~border} border
* @property {table~columns[]} columns Column specific configuration.
* @property {table~columns} columnDefault Default values for all columns. Column specific settings overwrite the default values.
* @property {table~drawJoin} drawHorizontalLine
* @property {table~drawHorizontalLine} drawHorizontalLine
*/

/**
Expand Down
4 changes: 3 additions & 1 deletion .README/usage/draw_horizontal_line.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ data = [

options = {
/**
* @typedef {function} drawJoin
* @typedef {function} drawHorizontalLine
* @param {number} index
* @param {number} size
* @return {boolean}
Expand All @@ -30,6 +30,7 @@ options = {
output = table(data, options);

console.log(output);

```

```
Expand All @@ -42,4 +43,5 @@ console.log(output);
╟────┼────┼────╢
║ 4A │ 4B │ 4C ║
╚════╧════╧════╝
```
2 changes: 1 addition & 1 deletion .README/usage/predefined_border_templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ output = table(data, {
paddingLeft: 0,
paddingRight: 1
},
drawJoin: () => {
drawHorizontalLine: () => {
return false
}
});
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ data = [
* Used to dynamically tell table whether to draw a line separating rows or not.
* The default behavior is to always return true.
*
* @typedef {function} drawJoin
* @typedef {function} drawHorizontalLine
* @param {number} index
* @param {number} size
* @return {boolean}
Expand All @@ -107,7 +107,7 @@ data = [
* @property {table~border} border
* @property {table~columns[]} columns Column specific configuration.
* @property {table~columns} columnDefault Default values for all columns. Column specific settings overwrite the default values.
* @property {table~drawJoin} drawHorizontalLine
* @property {table~drawHorizontalLine} drawHorizontalLine
*/

/**
Expand Down Expand Up @@ -296,7 +296,7 @@ data = [

options = {
/**
* @typedef {function} drawJoin
* @typedef {function} drawHorizontalLine
* @param {number} index
* @param {number} size
* @return {boolean}
Expand All @@ -309,6 +309,7 @@ options = {
output = table(data, options);

console.log(output);

```

```
Expand All @@ -321,6 +322,7 @@ console.log(output);
╟────┼────┼────╢
║ 4A │ 4B │ 4C ║
╚════╧════╧════╝
```

<a name="table-usage-padding-cell-content"></a>
Expand Down
2 changes: 1 addition & 1 deletion test/README/usage/draw_horizontal_line.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('README.md usage/', () => {

const options = {
/**
* @typedef {Function} drawJoin
* @typedef {Function} drawHorizontalLine
* @param {number} index
* @param {number} size
* @returns {boolean}
Expand Down
2 changes: 1 addition & 1 deletion test/configSamples.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default {
paddingRight: 1
}

// drawJoin: () => {
// drawHorizontalLine: () => {
// return false
// }
},
Expand Down
2 changes: 1 addition & 1 deletion test/streamConfigSamples.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default {
paddingRight: 1
}

// drawJoin: () => {
// drawHorizontalLine: () => {
// return false
// }
},
Expand Down

0 comments on commit d160abd

Please sign in to comment.