Skip to main content

Inline vs dialog

  • inline (default): the widget renders in the page flow where you mount it.
  • dialog: the widget opens behind a trigger button. Call intake.focus() to open it programmatically.

Filecheck.mount (zero-JS integration)

For plugins where all configuration is known server-side, Filecheck.mount handles mounting, cart-button gating, the proof gallery, and optional CSS/JS injection in a single call. It returns the intake element so you can attach listeners.

What Filecheck.mount handles for you

  • Resolves the mount target (#fc-inlinemountSelector → next to the cart button).
  • Creates and positions the dialog trigger button when presentation: 'dialog'.
  • Gates all cart buttons matching the built-in selectors plus cartButtonSelector on canProceed.
  • Wires the built-in proof gallery (no host code required).
  • Injects optional customCss / customJs.
The only thing left to you is platform-specific work, such as writing jobId into a hidden field for server-side verification.