- See also:
Constructors
-
new Conversion(properties)
-
Parameter:properties Objectoptional
See the properties for a list of all the properties that may be passed into the constructor.
Example:const ccWidget = new CoordinateConversion({ view: view }); const newFormat = new Format({ // add new conversion format here }); // add our new format to the widget's dropdown ccWidget.formats.add(newFormat); const newConversion = new Conversion({ format: newFormat }); // add the custom format to the top of the widget's display ccWidget.conversions.splice(0, newConversion);
Property Overview
Name | Type | Summary | Class | |
---|---|---|---|---|
String | more details The name of the class. | more details | Accessor | |
String | more details A formatted string based on the current position and display information on the format. | more details | Conversion | |
Format | more details The Format for this conversion. | more details | Conversion | |
Position | more details The position property contains the location information for this conversion. | more details | Conversion |
Property Details
-
The name of the class. The declared class name is formatted as
esri.folder.className
.
-
displayCoordinate Stringreadonly
-
-
format Format
-
The Format for this conversion. The Format contains information detailing how the Conversion should be performed and how it will be displayed.
-
position Position
-
The position property contains the location information for this conversion.
Method Overview
Name | Return Type | Summary | Class | |
---|---|---|---|---|
more details Adds one or more handles which are to be tied to the lifecycle of the object. | more details | Accessor |
Method Details
-
own(handleOrHandles)inheritedSince: ArcGIS API for JavaScript 4.24
-
Adds one or more handles which are to be tied to the lifecycle of the object. The handles will be removed when the object is destroyed.
// Manually manage handles const handle = reactiveUtils.whenOnce(() => !view.updating) .then(() => { wkidSelect.disabled = false; }); handle.remove(); // Assign a handle using own() this.own(reactiveUtils.whenOnce(() => !view.updating) .then(() => { wkidSelect.disabled = false; }));
Parameter:handleOrHandles WatchHandle|WatchHandle[]Handles marked for removal once the object is destroyed.