2.3.9 • Published 8 years ago

worksheetx v2.3.9

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

WorkSheetX

This project is an extension for xlsx, it has to clases WorksheetX and CellX

  • WorksheetX lets you work with the worksheet as a container of CellX.
  • CellX has some methods to query through the cells from the worksheet.

Dependencies

  • lodash npm install lodash --save
  • xlsx npm install xlsx --save

Creating a WorkSheetX

  • To create a WorksheetX First we need to have the xlsx workbook, then get one of the sheet from that workbook, then we can pass as parameter to the constructor
 var sheetName = 0; 
 var worksheet = new WorksheetX(xlsxWorkBook.Sheets[sheetName]);

WorkSheetX functions

  • ForEachCell

    This function has one argument:

    callback: Parameters cell, index

worksheet.forEachCell(function (cell, index) {
// code
});
  • cellFilter

    This function makes a filter to the cells based on the lodash filter function, and returns the filtered cells.

    This function has one argument:

    filter: most be a valid lodash filter

worksheet.cellFilter({name: 'yea'}); // cells with name == 'yea'

CellX

2.3.9

8 years ago

2.3.8

8 years ago

2.3.7

8 years ago

2.3.6

8 years ago

2.3.5

8 years ago

2.3.4

8 years ago

1.3.4

8 years ago

1.2.4

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago