crownpeak-dxm-sdk-core
Advanced tools
Comparing version 0.1.1 to 0.1.2
export default class CmsField extends String | ||
{ | ||
constructor(cmsFieldName, cmsFieldType) { | ||
constructor(cmsFieldName, cmsFieldType, value) { | ||
super(); | ||
this.cmsFieldName = cmsFieldName; | ||
this.cmsFieldType = cmsFieldType; | ||
this.value = value; | ||
} | ||
@@ -11,2 +12,7 @@ | ||
{ | ||
if (typeof(this.value) !== "undefined" | ||
&& this.value !== null | ||
&& !(typeof(this.value) === "number" && isNaN(this.value))) | ||
return this.value; | ||
const dataSource = window.cmsDataCache.dataSource; | ||
@@ -13,0 +19,0 @@ if (dataSource) { |
{ | ||
"name": "crownpeak-dxm-sdk-core", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Crownpeak Digital Experience Management (DXM) Software Development Kits (SDK) have been constructed to assist the Single Page App developer in developing client-side applications that leverage DXM for content management purposes.", | ||
@@ -12,2 +12,2 @@ "repository": "https://github.com/Crownpeak/DXM-SDK-Core", | ||
} | ||
} | ||
} |
@@ -12,2 +12,3 @@ <a href="https://www.crownpeak.com" target="_blank"></a> | ||
| 0.1.1 | 2020MAY11 | Initial Release. | | ||
| 0.1.2 | 2020JUN03 | Override for CmsField value | | ||
@@ -14,0 +15,0 @@ |
958328
11
77
41