UNPKG
@servicenow/library-enhanced-element
Version:
latest (19.8.2-ecd)
orlando (17.0.1)
paris (18.4.2)
quebec (19.8.2-ecd)
rome (19.8.2-ecd)
24.3.11-ecdd.2
19.8.2-ecd
19.8.1-ecd.12
18.4.2
18.4.1
17.0.1
17.0.0-rc.7
Base element for Now Design System components
@servicenow/library-enhanced-element
/
lib
/
scoped-action-name.js
9 lines
(8 loc)
•
242 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
'use strict'
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
default
= makeScopedActionName;
function
makeScopedActionName
(
tagName, actionName
) {
return
tagName.
toUpperCase
().
replace
(
/-/g
,
'_'
) +
'#'
+ actionName; }