Module Prawn::JS
In: lib/prawn/js.rb

Methods

Public Instance methods

add a Javascript fragment that will execute after the document is printed.

There can only be a single fragment. Calling this function multiple times will override earlier fragments.

add a Javascript fragment that will execute after the document is saved.

There can only be a single fragment. Calling this function multiple times will override earlier fragments.

add a Javascript fragment that will execute when the document is opened.

There can only be as many fragments as required. Calling this function multiple times will append the new fragment to the list.

add a Javascript fragment that will execute when the document is closed.

There can only be a single fragment. Calling this function multiple times will override earlier fragments.

add a Javascript fragment that will execute before the document is printed.

There can only be a single fragment. Calling this function multiple times will override earlier fragments.

add a Javascript fragment that will execute before the document is saved.

There can only be a single fragment. Calling this function multiple times will override earlier fragments.

[Validate]