/**
- * Copyright (c) 2017 ZTE Corporation.
+ * Copyright (c) 2017-2018 ZTE Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and the Apache License 2.0 which both accompany this distribution,
}
}
}
+
+ public static GetIconFullPath(iconName: string): string {
+ if (iconName && '' != iconName) {
+ if (-1 == iconName.indexOf('.')) {
+ return 'assets/images/' + iconName + '.svg';
+ } else {
+ return 'assets/images/' + iconName;
+ }
+ } else {
+ return 'assets/images/default.svg';
+ }
+ }
+
}