getNavigateOnClick static method
Returns the current navigate
property of element
.
Implementation
static String? getNavigateOnClick(UIElement element) {
var attrRoute = element.getAttribute('__navigate__route');
if (isNotEmptyObject(attrRoute)) {
var attrParams = element.getAttribute('__navigate__parameters');
return isNotEmptyObject(attrParams)
? '$attrRoute?$attrParams'
: attrRoute;
}
return null;
}