Merge pull request #6916 from vvlladd28/bug/maps/tooltip-action-with-space
[3.4] UI: Fixed not handle tooltip actions with contains space in name for map widgets
This commit is contained in:
commit
26585d4ecf
@ -116,11 +116,11 @@ const linkActionRegex = /<link-act name=['"]([^['"]*)['"]>([^<]*)<\/link-act>/g;
|
||||
const buttonActionRegex = /<button-act name=['"]([^['"]*)['"]>([^<]*)<\/button-act>/g;
|
||||
|
||||
function createLinkElement(actionName: string, actionText: string): string {
|
||||
return `<a href="javascript:void(0);" class="tb-custom-action" data-action-name=${actionName}>${actionText}</a>`;
|
||||
return `<a href="javascript:void(0);" class="tb-custom-action" data-action-name="${actionName}">${actionText}</a>`;
|
||||
}
|
||||
|
||||
function createButtonElement(actionName: string, actionText: string) {
|
||||
return `<button mat-button class="tb-custom-action" data-action-name=${actionName}>${actionText}</button>`;
|
||||
return `<button mat-button class="tb-custom-action" data-action-name="${actionName}">${actionText}</button>`;
|
||||
}
|
||||
|
||||
function parseTemplate(template: string, data: FormattedData,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user