Commit 2be97933 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Refs #8460 - HTML ID without space. Add some doc to functions.

parent 7b80f8cb
Pipeline #1937 failed with stages
in 2 minutes and 43 seconds
...@@ -27,6 +27,7 @@ nbprojec ...@@ -27,6 +27,7 @@ nbprojec
.support .support
.support_plantuml .support_plantuml
.support_sonar .support_sonar
qfq.flowchart.dia.autosave
test.json test.json
test.php test.php
*.autosave *.autosave
......
...@@ -392,7 +392,12 @@ class Link { ...@@ -392,7 +392,12 @@ class Link {
} }
/** /**
* Renders a BS-dropdown menu.
*
* @param string $str * @param string $str
* 'z|t:menu|b|o:click me' - the menu button to click on. A text 'menu', a BS button, a tooltip 'click me'.
* '||p:detail&pId=1&s|t:Person 1' - Page id=detail with pId=1 will be opened in the browser.
* '||d:file.pdf|p:detail&pId=1&_sip=1||t:Person as PDF' - Page id=detail with pId=1 will downloaded as a PDF.
* *
* @return string * @return string
* @throws CodeException * @throws CodeException
...@@ -404,13 +409,8 @@ class Link { ...@@ -404,13 +409,8 @@ class Link {
$menuEntryStrArr = array(); $menuEntryStrArr = array();
$menuEntryLinkArr = array(); $menuEntryLinkArr = array();
$tokenCollect = array(); $tokenCollect = array();
static $count = 0;
$time = microtime(false); $htmlId = uniqid('dd_');
if (defined('PHPUNIT_QFQ')) {
$time = '0.123 1234';
}
$htmlId = $time . ' ' . $count++;
$paramArr = KeyValueStringParser::explodeEscape(PARAM_DELIMITER, $str); $paramArr = KeyValueStringParser::explodeEscape(PARAM_DELIMITER, $str);
...@@ -457,6 +457,8 @@ class Link { ...@@ -457,6 +457,8 @@ class Link {
} }
/** /**
* https://getbootstrap.com/docs/3.4/components/#dropdowns
*
* Start * Start
* <span class="dropdown"> * <span class="dropdown">
* <span class="glyphicon glyphicon-option-vertical dropdown-toggle" id="dropdownMenu11" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> * <span class="glyphicon glyphicon-option-vertical dropdown-toggle" id="dropdownMenu11" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment