This repository was archived by the owner on May 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
mxp.plugins.HelpButton
offtherailz edited this page Dec 9, 2014
·
2 revisions
In order to use this plugin you need to include this files in the build.cfg:
-
src/mxp/plugins/HelpButton.jsand its dependencies
NOTE: In the default configuration these files are present.
This plugin allow to add a custom help button to MapStore Manager. This will show an help window with a checkbox that allow the user to disable the show on startup for the next times.
You can configure it adding this plugin with this configuration:
{
"ptype": "mxp_help",
"text":"Help",
"title":"Help Window",
"fileDocURL": "my_startup_page.html",
"actionTarget":{
"target": "north.tbar",
"index": 3
}
}
The basic parameters are:
- fileDocURL: The URL of the window content ( if present the window will display an iframe)
- description if fileDocURL is null, this configuration string will contain the html to display in the window.
Also you can change this parameters to allow the categories creation without prompt:
- tpl: template for the category view on the left
- attributeFields Array of Extjs form fields definitions for additional attributes for the resources. The attributes present in the resources will be automatically detected, but if you want to force the creation on these attributes, add the fields configuration to this array.
- buttonText: the text to show for the actionButton and tab title
- iconCls: Icon class for the actionbar and the tab
- leftPanelWidth: Ask user admin credentials for categories initializing. Default it's true.