Commit Graph

8 Commits

Author SHA1 Message Date
Emmanuel Kasper
f4824f0a69 Allow to set the onlineHelp via a config Object
For cases when we need to set the online help block id of a modal window after the help
button has been configured.
2017-09-19 11:11:29 +02:00
Emmanuel Kasper
9317d08a2d Rename the pve-help-button to pve-inline-button
This will allow reuse of the class for other inlined buttons
2017-07-25 14:24:35 +02:00
Dominik Csapak
6fb47ebac9 correctly hide helpButton in wizard
the property is "listenToGlobalEvent" not "listenGlobalEvent"

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-02 16:40:50 +01:00
Dietmar Maurer
c8802a60b7 use auto-generated block IDs to reference online docu. 2016-10-13 11:26:06 +02:00
Dominik Csapak
a50de12435 add tooltip hashmap/generator for help button
instead of manually setting the onlineHelpTooltip property
we now have a method which maps links to the docs to
titles

for now this uses a static hashmap, but in the future
we want to generate this by the pve-docs package

also most of the subheaders we can generate instead of
saving them because they simply have each word capitalized
(e.g. '_container_network' => 'Container Network')

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-09-15 11:58:17 +02:00
Dominik Csapak
4542b0d633 make pveHelpButton more abstract
this adds an option to set the helplink on the global event

also we now only set the link instead of the complete handler,
which is now static and gets the url from a property
(which we will set directly for other help buttons)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-09-13 16:36:48 +02:00
Emmanuel Kasper
285403bf62 Add custom syle to pveHelpButton
Next / OK are already displayed in blue, which is the 'call-to-action'
color we use everywhere.
To prevent stealing attention from these buttons, switch help button
to grey
2016-06-01 12:38:29 +02:00
Emmanuel Kasper
ecbca6c4c0 Add help button for PVE
This help button is meant to be added on InputPanels, where a
link to an online documentation chapter or subschapter is available.

Clicking on the help button will open the help in a new
browser tab.

Original idea similar to the pfSense GUI.
2016-06-01 12:30:25 +02:00