config: {JSON.stringify(props.config)}
diff --git a/samples/widgets/demo/README.md b/samples/widgets/demo/README.md
index 3f074c16..07cb0469 100644
--- a/samples/widgets/demo/README.md
+++ b/samples/widgets/demo/README.md
@@ -1,4 +1,4 @@
-# Demo widget
+# Demo class widget
This sample demonstrates how to create a widget using a class component.
## How to use the sample
diff --git a/samples/widgets/demo/manifest.json b/samples/widgets/demo/manifest.json
index 6b8d79b2..f8023844 100644
--- a/samples/widgets/demo/manifest.json
+++ b/samples/widgets/demo/manifest.json
@@ -2,8 +2,8 @@
"name": "demo",
"label": "Demo",
"type": "widget",
- "version": "1.3.0",
- "exbVersion": "1.3.0",
+ "version": "1.4.0",
+ "exbVersion": "1.4.0",
"author": "Esri R&D Center Beijing",
"description": "This is the widget used in developer documentation",
"copyright": "",
diff --git a/samples/widgets/editor/README.md b/samples/widgets/editor/README.md
index 63f241aa..9f74d39a 100644
--- a/samples/widgets/editor/README.md
+++ b/samples/widgets/editor/README.md
@@ -9,7 +9,7 @@ Clone the [sample repo](https://github.com/esri/arcgis-experience-builder-sdk-re
This sample imports the required modules to leverage the `Editor` widget from the ArcGIS API for JavaScript. The `Editor` widget is dependent on a `Map` widget, which must have an editable feature layer. If it recognizes it is editable, the layer can be used by the widget.
```javascript
- import Editor = require('esri/widgets/Editor');
+ import * as Editor from 'esri/widgets/Editor';
```
diff --git a/samples/widgets/editor/manifest.json b/samples/widgets/editor/manifest.json
index c4fbdfce..47959f63 100644
--- a/samples/widgets/editor/manifest.json
+++ b/samples/widgets/editor/manifest.json
@@ -1,9 +1,9 @@
{
"name": "editor",
"type": "widget",
- "version": "1.3.0",
+ "version": "1.4.0",
"dependency": "jimu-arcgis",
- "exbVersion": "1.3.0",
+ "exbVersion": "1.4.0",
"author": "Esri R&D Center Beijing",
"description": "This is the widget used in developer guide",
"copyright": "",
diff --git a/samples/widgets/editor/src/runtime/widget.tsx b/samples/widgets/editor/src/runtime/widget.tsx
index 82f73c60..530d615b 100644
--- a/samples/widgets/editor/src/runtime/widget.tsx
+++ b/samples/widgets/editor/src/runtime/widget.tsx
@@ -18,9 +18,9 @@
LICENSE file.
*/
/** @jsx jsx */
-import { AllWidgetProps, jsx, React, css } from "jimu-core";
+import { AllWidgetProps, BaseWidget, jsx, React } from "jimu-core";
import { JimuMapViewComponent, JimuMapView } from "jimu-arcgis";
-import Editor = require('esri/widgets/Editor');
+import * as Editor from 'esri/widgets/Editor'
interface State {
@@ -80,8 +80,7 @@ export default class Widget extends React.PureComponent
, Stat
render() {
let mvc = Please select a map.
;
-
-
+
const css = `
.esri-editor__scroller {
overflow-y: auto;
@@ -92,15 +91,16 @@ export default class Widget extends React.PureComponent, Stat
.esri-editor__content-group {
max-height: 1em;
}
+
`
if (
this.props.hasOwnProperty("useMapWidgetIds") &&
this.props.useMapWidgetIds &&
- this.props.useMapWidgetIds.length === 1
+ this.props.useMapWidgetIds[0]
) {
mvc = (
);
@@ -108,8 +108,8 @@ export default class Widget extends React.PureComponent, Stat
return (