Actions

print

10min

This feature enables you to generate hard copies of invoices, receipts, articles, or any rendered content in raw HTML, providing a smooth, native experience that works across different devices and printers.

Print HTML action
Print HTML action


Configuration options

Some properties are common to all components, see Common component properties for a list and their configuration options.



Core structure



title

Provide the action button with a title, for example, Print.

html

Use standard HTML elements to ensure optimal formatting and compatibility when rendering content for printing, for example, <html><body>Invoices are provided monthly.</body</html>. The HTML can be built up using JSONata or JavaScript.

Other options



icon

Select an icon to display when the action is configured as the secondary button or in a header action.

isHidden

false hides the action button, true shows the action button. Default setting is true.

styles

isDanger - Styles the action button in red or your brand's designated danger color. isDisabled - Displays the action button as greyed out. isPrimary - Styles the action button in blue or your brand's designated primary color. isSecondary - Sets the action as a secondary button, accessible via the ellipsis. The icon property can be used when the action button is displayed as a secondary button.

Considerations

  • The action.print requires raw HTML. This can be configured in the action, in an expression, or in JavaScript.

Examples and code snippets 

Basic print action

Print HTML
Print HTML


This example demonstrates configuring action.print to display a button for printing HTML content.

action-print-basic.jigx


Print with web-view component

This example demonstrates configuring action.print to display a button for printing HTML content shown in the component.web-view. The state of the component is used to reference the raw HTML used in the component.

action-print-web-view.jigx


Document jig with print action

Print from a document jig
Print from a document jig


This example demonstrates configuring action.print to display a button for printing raw HTML content from a jig.document type.

action.print-document-jig.jigx


Print action in a jig header

Print from the header
Print from the header


This example demonstrates configuring action.print in the jig.header. A print icon is used to trigger the action. The raw HTML content is configured in the action.print.

action.print-jig-header.jigx
datasource (static)