mjml-table
Advanced tools
Comparing version 2.0.0-beta.4 to 2.0.0-beta.5
@@ -35,2 +35,3 @@ 'use strict'; | ||
'padding': '10px 25px', | ||
'table-layout': 'auto', | ||
'width': '100%' | ||
@@ -70,3 +71,4 @@ } | ||
fontSize: mjAttribute('font-size'), | ||
lineHeight: mjAttribute('line-height') | ||
lineHeight: mjAttribute('line-height'), | ||
tableLayout: mjAttribute('table-layout') | ||
} | ||
@@ -73,0 +75,0 @@ }; |
{ | ||
"name": "mjml-table", | ||
"version": "2.0.0-beta.4", | ||
"version": "2.0.0-beta.5", | ||
"main": "lib/index.js", | ||
@@ -15,5 +15,5 @@ "repository": { | ||
"dependencies": { | ||
"mjml-core": "^2.0.0-beta.4", | ||
"react": "^0.14.7" | ||
"mjml-core": "^2.0.0-beta.5", | ||
"react": "^0.14.8" | ||
} | ||
} |
@@ -1,1 +0,46 @@ | ||
mjml-table | ||
## MJ-TABLE | ||
``` html | ||
<mj-body> | ||
<mj-section> | ||
<mj-column width="100%"> | ||
<mj-table> | ||
<tr style="border-bottom:1px solid #ecedee;text-align:left;padding:15px 0;"> | ||
<th style="padding: 0 15px 0 0;">Year</th> | ||
<th style="padding: 0 15px;">Language</th> | ||
<th style="padding: 0 0 0 15px;">Inspired from</th> | ||
</tr> | ||
<tr> | ||
<td style="padding: 0 15px 0 0;">1995</td> | ||
<td style="padding: 0 15px;">PHP</td> | ||
<td style="padding: 0 0 0 15px;">C, Shell Unix</td> | ||
</tr> | ||
<tr> | ||
<td style="padding: 0 15px 0 0;">1995</td> | ||
<td style="padding: 0 15px;">JavaScript</td> | ||
<td style="padding: 0 0 0 15px;">Scheme, Self</td> | ||
</tr> | ||
</mj-table> | ||
</mj-column> | ||
</mj-section> | ||
</mj-body> | ||
``` | ||
This tag allows you to display table and filled it with data. | ||
attribute | unit | description | default value | ||
----------------|-------------|-------------------------------|-------------- | ||
color | color | text header & footer color | #000 | ||
font-family | string | font name | Ubuntu, Helvetica, Arial, sans-serif | ||
font-size | px/em | font size | 13px | ||
line-height | percent/px | space between lines | 22px | ||
padding | px | supports up to 4 parameters | 10px 25px | ||
padding-top | px | top offset | n/a | ||
padding-bottom | px | bottom offset | n/a | ||
padding-left | px | left offset | n/a | ||
padding-right | px | right offset | n/a | ||
width | percent/px | table width | 100% |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6051
77
47
Updatedmjml-core@^2.0.0-beta.5
Updatedreact@^0.14.8