PK œqhYξΆJ‚ίFίF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Notice: ob_end_clean(): Failed to delete buffer. No buffer to delete in /home/telusvwg/public_html/da754d/index.php on line 8
$#$#$#

Dir : /opt/alt/alt-nodejs9/root/lib/node_modules/npm/node_modules.bundled/cli-table2/
Server: Linux premium279.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
IP: 66.29.132.192
Choose File :

Url:
Dir : //opt/alt/alt-nodejs9/root/lib/node_modules/npm/node_modules.bundled/cli-table2/advanced-usage.md

##### use colSpan to span columns - (colSpan above normal cell)
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚ greetings     β”‚
    β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
    β”‚ greetings     β”‚
    β”œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€
    β”‚ hello β”‚ howdy β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”˜
```javascript
      var table = new Table({style:{head:[],border:[]}});

      table.push(
        [{colSpan:2,content:'greetings'}],
        [{colSpan:2,content:'greetings'}],
        ['hello','howdy']
      );

```


##### use colSpan to span columns - (colSpan below normal cell)
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”
    β”‚ hello β”‚ howdy β”‚
    β”œβ”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€
    β”‚ greetings     β”‚
    β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
    β”‚ greetings     β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```javascript
      var table = new Table({style:{head:[],border:[]}});

      table.push(
        ['hello','howdy'],
        [{colSpan:2,content:'greetings'}],
        [{colSpan:2,content:'greetings'}]
      );

```


##### use rowSpan to span rows - (rowSpan on the left side)
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”
    β”‚ greetings β”‚           β”‚ hello β”‚
    β”‚           β”‚ greetings β”œβ”€β”€β”€β”€β”€β”€β”€β”€
    β”‚           β”‚           β”‚ howdy β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”˜
```javascript
      var table = new Table({style:{head:[],border:[]}});

      table.push(
        [{rowSpan:2,content:'greetings'},{rowSpan:2,content:'greetings',vAlign:'center'},'hello'],
        ['howdy']
      );

```


##### use rowSpan to span rows - (rowSpan on the right side)
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚ hello β”‚ greetings β”‚           β”‚
    β”œβ”€β”€β”€β”€β”€β”€β”€β”€           β”‚           β”‚
    β”‚ howdy β”‚           β”‚ greetings β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```javascript
      var table = new Table({style:{head:[],border:[]}});

      table.push(
        ['hello',{rowSpan:2,content:'greetings'},{rowSpan:2,content:'greetings',vAlign:'bottom'}],
        ['howdy']
      );

```


##### mix rowSpan and colSpan together for complex table layouts
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”
    β”‚ hello β”‚ sup β”‚ hi β”‚
    β”œβ”€β”€β”€β”€β”€β”€β”€β”€     β”‚    β”‚
    β”‚ howdy β”‚     β”‚    β”‚
    β”œβ”€β”€β”€β”¬β”€β”€β”€β”Όβ”€β”€β”¬β”€β”€β”€    β”‚
    β”‚ o β”‚ k β”‚  β”‚  β”‚    β”‚
    β””β”€β”€β”€β”΄β”€β”€β”€β”΄β”€β”€β”΄β”€β”€β”΄β”€β”€β”€β”€β”˜
```javascript
      var table = new Table({style:{head:[],border:[]}});

      table.push(
        [{content:'hello',colSpan:2},{rowSpan:2, colSpan:2,content:'sup'},{rowSpan:3,content:'hi'}],
        [{content:'howdy',colSpan:2}],
        ['o','k','','']
      );

```


##### multi-line content will flow across rows in rowSpan cells
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚ hello β”‚ greetings β”‚ greetings β”‚
    β”œβ”€β”€β”€β”€β”€β”€β”€β”€ friends   β”‚ friends   β”‚
    β”‚ howdy β”‚           β”‚           β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```javascript
      var table = new Table({style:{head:[],border:[]}});

      table.push(
        ['hello',{rowSpan:2,content:'greetings\nfriends'},{rowSpan:2,content:'greetings\nfriends'}],
        ['howdy']
      );

```


##### multi-line content will flow across rows in rowSpan cells - (complex layout)
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”
    β”‚ hello β”‚ sup β”‚ hi β”‚
    β”œβ”€β”€β”€β”€β”€β”€β”€β”€ man β”‚ yo β”‚
    β”‚ howdy β”‚ hey β”‚    β”‚
    β”œβ”€β”€β”€β”¬β”€β”€β”€β”Όβ”€β”€β”¬β”€β”€β”€    β”‚
    β”‚ o β”‚ k β”‚  β”‚  β”‚    β”‚
    β””β”€β”€β”€β”΄β”€β”€β”€β”΄β”€β”€β”΄β”€β”€β”΄β”€β”€β”€β”€β”˜
```javascript
      var table = new Table({style:{head:[],border:[]}});

      table.push(
        [{content:'hello',colSpan:2},{rowSpan:2, colSpan:2,content:'sup\nman\nhey'},{rowSpan:3,content:'hi\nyo'}],
        [{content:'howdy',colSpan:2}],
        ['o','k','','']
      );

```


##### rowSpan cells can have a staggered layout
    β”Œβ”€β”€β”€β”¬β”€β”€β”€β”
    β”‚ a β”‚ b β”‚
    β”‚   β”œβ”€β”€β”€β”€
    β”‚   β”‚ c β”‚
    β”œβ”€β”€β”€β”€   β”‚
    β”‚ d β”‚   β”‚
    β””β”€β”€β”€β”΄β”€β”€β”€β”˜
```javascript
      var table = new Table({style:{head:[],border:[]}});

      table.push(
        [{content:'a',rowSpan:2},'b'],
        [{content:'c',rowSpan:2}],
        ['d']
      );

```


##### the layout manager automatically create empty cells to fill in the table
    β”Œβ”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”
    β”‚ a β”‚ b β”‚  β”‚
    β”‚   β”œβ”€β”€β”€β”€  β”‚
    β”‚   β”‚   β”‚  β”‚
    β”‚   β”œβ”€β”€β”€β”΄β”€β”€β”€
    β”‚   β”‚ c    β”‚
    β”œβ”€β”€β”€β”€      β”‚
    β”‚   β”‚      β”‚
    β””β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”˜
```javascript
      var table = new Table({style:{head:[],border:[]}});

      //notice we only create 3 cells here, but the table ends up having 6.
      table.push(
        [{content:'a',rowSpan:3,colSpan:2},'b'],
        [],
        [{content:'c',rowSpan:2,colSpan:2}],
        []
      );
```


##### use table `rowHeights` option to fix row height. The truncation symbol will be shown on the last line.
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”
    β”‚ hello β”‚
    β”‚ hi…   β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”˜
```javascript
      var table = new Table({rowHeights:[2],style:{head:[],border:[]}});

      table.push(['hello\nhi\nsup']);

```


##### if `colWidths` is not specified, the layout manager will automatically widen rows to fit the content
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚ hello there β”‚
    β”œβ”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€
    β”‚ hi   β”‚ hi   β”‚
    β””β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”˜
```javascript
      var table = new Table({style:{head:[],border:[]}});

      table.push(
        [{colSpan:2,content:'hello there'}],
        ['hi', 'hi']
      );

```


##### you can specify a column width for only the first row, other rows will be automatically widened to fit content
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚ hello there β”‚
    β”œβ”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€
    β”‚ hi β”‚   hi   β”‚
    β””β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```javascript
      var table = new Table({colWidths:[4],style:{head:[],border:[]}});

      table.push(
        [{colSpan:2,content:'hello there'}],
        ['hi',{hAlign:'center',content:'hi'}]
      );

```


##### a column with a null column width will be automatically widened to fit content
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚ hello there β”‚
    β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€
    β”‚     hi β”‚ hi β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”˜
```javascript
      var table = new Table({colWidths:[null, 4],style:{head:[],border:[]}});

      table.push(
        [{colSpan:2,content:'hello there'}],
        [{hAlign:'right',content:'hi'}, 'hi']
      );

```


##### feel free to use colors in your content strings, column widths will be calculated correctly
![table image](https://cdn.rawgit.com/jamestalmage/cli-table2/c806c2636df97f73c732b41aa913cf78d4ac0d39/examples/screenshots/truncation-with-colors.png)
```javascript
      var table = new Table({colWidths:[5],style:{head:[],border:[]}});

      table.push([colors.red('hello')]);

```