FoxitPDFSDKforWeb
8.2.0
Foxit PDF SDK for Web
|
This class provides an ability for user to customize the several UI like contextmenu which may be triggered from PDFViewCtrl
module. You should customize that stuffs like the following example:
. More...
Inherits TinyViewerUI.
Public Member Functions | |
alert (message, title) | |
A method shows alert dialog like window.alert() More... | |
confirm (message, title) | |
A method shows confirm dialog like window.alert() More... | |
createContextMenu (owner, anchor, config) | |
A method which is used to create the contextmenu component and registers the right-click event. You can override this method to customize the right-click menu. More... | |
prompt (defaultValue, message, title) | |
A method shows prompt dialog like window.alert() More... | |
Protected Member Functions | |
getAnnotsContextMenuName (owner) | |
Obtains the contextmenu component name according to the owner annotation's type. If the component's name is not found in the template, you need to use the default contextmenu component according to the type of Annotation. 'fv–markup-contextmenu', 'fv–textmarkup-contextmenu' and 'fv–default-annot-contextmenu' are used as default contextmenu component name by the implementation of the XViewerUI.createContextMenu method. More... | |
getContextMenuNameByOwner (owner) | |
Obtains the contextmenu component name according to the owner type(including state-handler name or AnnotComponent instance). More... | |
This class provides an ability for user to customize the several UI like contextmenu which may be triggered from PDFViewCtrl
module. You should customize that stuffs like the following example:
.
|
inline |
A method shows alert dialog like window.alert()
{string} | message - The alert message. |
{string} | [title] - The title of alert dialog. |
|
inline |
A method shows confirm dialog like window.alert()
{string} | message - The confirm message. |
{string} | [title] - The title of the confirm dialog. |
|
inline |
A method which is used to create the contextmenu component and registers the right-click event. You can override this method to customize the right-click menu.
owner | {string|AnnotComponent} - Indicates the owner of the contextmneu instance returned by this method , which can be the name of a state-handler or an instance of AnnotComponent . |
anchor | {HTMLElement} - An html element used to respond to right-click events. |
config | {object} - |
config.selector | {string} - A css selector of an element, this element may be the anchor or it's children, this selector is used to detect the right-click event target. |
|
inlineprotected |
Obtains the contextmenu component name according to the owner annotation's type. If the component's name is not found in the template, you need to use the default contextmenu component according to the type of Annotation. 'fv–markup-contextmenu', 'fv–textmarkup-contextmenu' and 'fv–default-annot-contextmenu' are used as default contextmenu component name by the implementation of the XViewerUI.createContextMenu
method.
{AnnotComponent} | owner |
|
inlineprotected |
Obtains the contextmenu component name according to the owner type(including state-handler name or AnnotComponent
instance).
{string|AnnotComponent} | owner - Indicates the owner of the contextmneu instance returned by this method , which can be the name of a state-handler or an instance of AnnotComponent . |
|
inline |
A method shows prompt dialog like window.alert()
{string} | defaultValue - The default value of the input box. |
{string} | message - The message above the input. |
{string} | [title] - The title of the prompt dialog. |