Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for cell types #2

Closed
zheffie opened this issue Apr 22, 2015 · 5 comments
Closed

Support for cell types #2

zheffie opened this issue Apr 22, 2015 · 5 comments

Comments

@zheffie
Copy link

zheffie commented Apr 22, 2015

It would be great is cell types were supported. Eg. Number, text, date, ...
Currently everything is a string.

@pofider
Copy link
Owner

pofider commented Apr 22, 2015

The problem is that in html everything is just a string.

  • we can try to parse the cell values to check if it is a number or perhaps an ISO date format
  • or we can add support for some attributes specifying data type like <td data-type='number'>1.1</td>

suggestions?

@zheffie
Copy link
Author

zheffie commented Apr 22, 2015

Defining a custom html attribute is probably the way to go.

eg
`100``

With below format codes (from the openXML standard)

ID  Format Code
0   General
1   0
2   0.00
3   #,##0
4   #,##0.00
9   0%
10  0.00%
11  0.00E+00
12  # ?/?
13  # ??/??
14  mm-dd-yy
15  d-mmm-yy
16  d-mmm
17  mmm-yy
18  h:mm AM/PM
19  h:mm:ss AM/PM
20  h:mm
21  h:mm:ss
22  m/d/yy h:mm
37  #,##0 ;(#,##0)
38  #,##0 ;[Red](#,##0)
39  #,##0.00;(#,##0.00)
40  #,##0.00;[Red](#,##0.00)
45  mm:ss
46  [h]:mm:ss
47  mmss.0
48  ##0.0E+0
49  @

@zheffie
Copy link
Author

zheffie commented Apr 23, 2015

Problems seems to be that msexcel-builder does not really support other formats then string.
Perhaps you can incorporate following patch:
chuanyi/msexcel-builder#11

@bjrmatos
Copy link
Collaborator

bjrmatos commented Mar 29, 2018

another options to support cell types is to use: https://github.com/d-band/better-xlsx or inspect how better-xlsx does the cell type support and extend our fork

@bjrmatos
Copy link
Collaborator

bjrmatos commented Feb 8, 2019

this is supported in 1.1.0, docs are coming..

@bjrmatos bjrmatos closed this as completed Feb 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants