Skip to content

Latest commit

History

History
executable file
44 lines (31 loc) 路 1.63 KB

OPTIONS.md

File metadata and controls

executable file
44 lines (31 loc) 路 1.63 KB

Tree.js - Configuration - Options:

Below are all the configuration options that can be passed to the "setConfiguration()" public function.

Options:

Type: Name: Description:
boolean safeMode States if safe-mode is enabled (errors will be ignored and logged only, defaults to true).
Object highlightAllDomElementTypes The DOM element types to lookup (can be either an array of strings, or a space separated string, and defaults to "*").

Options - Strings:

Type: Name: Description:
string backButtonText The text that should be shown for the "Back" button.
string nextButtonText The text that should be shown for the "Next" button.
string showChildrenLabelText The text that should be shown for the "Show Children" label.
string showDescriptionsLabelText The text that should be shown for the "Show Descriptions" label.
string showContentsLabelText The text that should be shown for the "Show Contents" label.
string noDataMessage States the message that should be shown when there is no data (defaults to "There is currently no data to view.").
string expandToolTipText States the tooltip that should be shown for the expand button (defaults to "Expand").
string contractToolTipText States the tooltip that should be shown for the contract button (defaults to "Contract").
string refreshButtonText The text that should be shown for the "Refresh" button.

Example:

<script> 
  $tree.setConfiguration( {
      safeMode: false
  } );
</script>