Socket
Socket
Sign inDemoInstall

mjml-invoice

Package Overview
Dependencies
Maintainers
4
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-invoice

mjml-invoice


Version published
Weekly downloads
1.8K
decreased by-15.75%
Maintainers
4
Weekly downloads
 
Created
Source

mjml-invoice

Display a table of items with calculated total price.

<mjml>
  <mj-body>
    <mj-container>
      <mj-section>
        <mj-column width="100%">
          <mj-invoice format="0,00.00€" intl="name:Product Name">
            <mj-invoice-item name="TV" price="549€" quantity="1" />
            <mj-invoice-item name="DVD - Iron Man II" price="22.99€" quantity="2" />
          </mj-invoice>
        </mj-column>
      </mj-section>
    </mj-container>
  </mj-body>
</mjml>

sexy

attributeunitdescriptiondefault value
widthpercent/pxwidth of the invoicen/a
alignstringleft/center/rightleft
colorcolortext header & footer color#b9b9b9
font-familystringfont nameRoboto, Ubuntu, Helvetica, Arial, sans-serif
font-sizepx/emfont size13px
line-heightpercent/pxspace between lines22px
borderstringborder-bottom header & border-top footer1px solid #ecedee
container-background-colorcolorinner element background colorn/a
paddingpxsupports up to 4 parameters10px 25px
padding-toppxtop offsetn/a
padding-bottompxbottom offsetn/a
padding-leftpxleft offsetn/a
padding-rightpxright offsetn/a
intlstringformatted string to set wording for header and footer"name:Name;quantity:Quantity;price:Price"
formatstringhow to format total price, based on numeraljsn/a
css-classstringclass name, added to the root HTML element createdn/a

mjml-invoice-item

Display a row in an mj-invoice component

<mjml>
  <mj-body>
    <mj-container>
      <mj-section>
        <mj-column>
          <mj-invoice format="0,00.00€" intl="name:Product Name">
            <mj-invoice-item name="TV" price="549€" quantity="1" />
            <mj-invoice-item name="DVD - Iron Man II" price="22.99€" quantity="2" />
          </mj-invoice>
        </mj-column>
      </mj-section>
    </mj-container>
  </mj-body>
</mjml>
attributeunitdescriptiondefault value
colorcolortext color#747474
font-familystringfont nameRoboto, Ubuntu, Helvetica, Arial, sans-serif
font-sizepx/emfont size14px
line-heightpercent/pxspace between lines22px
borderstringborder-bottom header & border-top footer1px solid #ecedee
text-alignstringcss text alignleft (quantity column: right)
paddingpxsupports up to 4 parameters10px 25px
padding-toppxtop offsetn/a
padding-bottompxbottom offsetn/a
padding-leftpxleft offsetn/a
padding-rightpxright offsetn/a
namestringitem namen/a
pricestring/numberprice (should already be formatted)0
quantitynumberquantity0
css-classstringclass name, added to the root HTML element createdn/a

FAQs

Package last updated on 25 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc