Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleConfiguration Context Pages - Typescript Syntax
interface IContextPageConfig {
    categoryHelp?:IContextPageConfigHelp, // allows to define specific help text per category (needs "help" tab enabled)
    itemHelp?:IContextPageConfigHelp, // allows to define specific help text per item (needs "help" tab enabled)
    tabs?:IContextPageConfigTab[] // defines the tabs in the context pages
}
interface IContextPageConfigHelp {
    [key:string]:string // defines custom help information for a given category if na item of this category is selected, e.g. "UREQ":"please enter user requirements","SREQ":"define system requirements here"
}

interface IContextPageConfigTab { 
    title:string, // the name of the context tab in the ui
    type:ContextPageConfigTabOption, // defines the content of the tab
    baseURL?:string // (required for type iframe) Note: the url must be on an https://  protocol, otherwise the browser will reject to load it.
}

type ContextPageConfigTabOption = 
    "help" // shows a tab with pre-defined (or custom) help explaining what you can do with the selected item, depedning on its category 
    |"support" // allows to create help desk tickets from within the software including information about the item/project and operating system / browser
    |"faq" // shows a tab with faqs about the product. This is useful for first time visitors
    |"references" //  shows a tab with all up and down references of the selected items
    |"smartlinks" // shows a tab with all smartlinks in the text boxes and tables of the selected item
    |"iframe" // embeds an iframe. This iframe can abe page which is hosted on your own servers. When called it receives the content of the selected item (as payload) 
    |"iframeget" // embeds an iframe. This iframe can be page which is hosted on your own servers. When called it receives part of the item information in the called url
    |"upreferences" // (recursive) uplinks
    |"downreferences" // (recursive) downlinks
    |"foldercontent" //  shows the items and folders in a folder 
;

...