P4VJS User Guide (2020.1)

Get started with P4VJS

With P4VJS, you can extend P4V with custom HTML pages made available in the form of:

  • Tabs: Available from the View menu and displayed as a tab in the right pane. Suitable for pages without context-driven data. Tabbed pages typically define their own scope and context.
  • Windows: Available from the Tools menu and displayed as popup windows. Includes option to pass the selection to the HTML page as a parameter to be used by the page to drive its context. P4VJS provides a function to close windows, to be used by Submit or Cancel buttons.

P4V menus list custom HTML tabs and windows based on the following priorities:

  1. Globally deployed tabs or windows appear first.
  2. Locally defined tabs or windows appear next.
  3. Custom tools (tools and context menus only) appear last.

P4VJS uses a Chromium browser technology called WebEngine. The rendering engine is tuned for multi-processing, using a small memory footprint. It has a large development community, thus guaranteeing support for HTML5 and newer JavaScript versions.

P4V comes with a set of demo extensions that are available in demo mode.

This section provides information you need to start using P4VJS.