Class: Settings

ParseTablePlugin~ Settings

new Settings()

Source:

Members

allowNewLines :boolean

Allow new lines in result data. If set to false, then newlines will be replaced with single space char
Type:
  • boolean
Default Value:
  • true
Source:

cancel :ParseTablePlugin~onCancel

Callback for cancel action. This property is optional. You will sometimes need this callback when you track user behaviour - when user closes pasteTable dialog
Type:
Default Value:
  • does nothing
Source:

confirmCancel :string

Text for Cancel button on confirmation dialog.
Type:
  • string
Default Value:
  • 'Cancel'
Source:

confirmHeaderMultiple :string

Text for for confirmation dialog in case if several tables were found.
Type:
  • string
Default Value:
  • 'Choose one of found tables'
Source:

confirmHeaderSingle :string

Text for confirmation dialog in case if only one table was found.
Type:
  • string
Default Value:
  • 'Confirm, that information is good'
Source:

confirmLabelMultiple :string

Text for hint on confirmation dialog in case if several tables were found
Type:
  • string
Default Value:
  • 'Following information was found, choose correct one, check it and confirm:'
Source:

confirmLabelSingle :string

Text for hint on confirmation dialog in case if only one table was found
Type:
  • string
Default Value:
  • 'Following information was found, check it and confirm:'
Source:

confirmOk :string

Text for confirmation button on confirmation dialog. This button will appear once for each found table.
Type:
  • string
Default Value:
  • 'Use this information'
Source:

openOnPageLoad :boolean

Whether to open dialog immediately after page loads.
Type:
  • boolean
Default Value:
  • false
Source:

pasteCancel :string

Text for Cancel button on dialog with textarea.
Type:
  • string
Default Value:
  • 'Cancel'
Source:

pasteError :string

Text for message, that is shown if pasted content is not a table
Type:
  • string
Default Value:
  • 'This contents does not look like a table'
Source:

pasteHeader :string

Text for dialog header
Type:
  • string
Default Value:
  • 'Paste your table here'
Source:

pasteHint :string

Text for hint under the textarea
Type:
  • string
Default Value:
  • 'You can paste mixed data with several tables, just do Ctrl-A Ctrl-C Ctrl-V from your document'
Source:

pasteLabel :string

Text for textarea placeholder
Type:
  • string
Default Value:
  • 'Paste table here (Ctrl-V)'
Source:

pasteOk :string

Text for Ok button on dialog with textarea. This button is rarely used, because dialog submits immediately after table is pasted, but still this button is there for better UX - user should understand the outcome.
Type:
  • string
Default Value:
  • 'Ok'
Source:

postProcess :ParseTablePlugin~onPostProcess

Optional callback, can be used to process data after table was parsed and before it is shown to user.
Type:
Default Value:
  • return data;
Source:

success :ParseTablePlugin~onSuccess

Callback for successful action - when user finally clicks "Use this information" button This property should be overriden (otherwise plugin is rather useless)
Type:
Default Value:
  • alert('override me');
Source:

wait :string

Text for "progress" dialog, that will appear, if parsing takes long time
Type:
  • string
Default Value:
  • 'Please wait...'
Source: