Home API Docs Linkr LinkrObject Class

LinkrObject Class - Template methods

Attention: open in a new window.PDFPrintEmail
Article Index
LinkrObject Class
Object options
Search settings
Layout methods
Template methods
All Pages

Template methods

These are the helper functions used by the object, and are optional. By default, the following methods are defined:
  • insertToolbar: inserts toolbar links
  • insertHeader: inserts header elements
  • insertContent: inserts the description
  • setupToggleLink: creates the "Configure link" toggle link
  • getConfig: renders the configuration DIV
  • getLabel: returns a LABEL element
  • getInput: returns an INPUT element
  • clear: returns a DIV element
  • dbList: shortcut for LinkrHelper.dbList (returns false or error message)
  • dbObject: shortcut for LinkrHelper.dbObject (returns false or error message)
  • isError: checks a database object for errors
  • htmlAnchors: returns an array of HTML anchors
    • First argument is the string to parse
  • pageBreaks: returns an array of page breaks
    • First argument is the string to parse

Override any of these methods to customize your object instance.

uBar 0.9 has been released. This is a beta version; there are still some bugs to be worked out. Keep that in mind before using it on a live site.