Class: AddMonitoredAreaForm

AddMonitoredAreaForm

Form for creating new Monitored Area

Extends

  • Component

Members

closeScreen

Close form.
Source:

toggleActive

Toggle monitoredArea active/archived
Source:

Methods

checkDeviceValidity()

Check if device selection is valid
Source:

componentDidMount()

Source:

componentDidUpdate(prevProps, prevState, snapshot)

Parameters:
Name Type Description
prevProps
prevState
snapshot
Source:

handleDelete()

Source:

handleDeviceInputChange(event)

Handles device input change.
Parameters:
Name Type Description
event
Source:

handleInputChange(event)

Handles name, deviceLatitude, deviceLongitude change.
Parameters:
Name Type Description
event
Source:

handleParametersInputChange(event)

Handle parameters input change
Parameters:
Name Type Description
event
Source:

handleSubmitCreate(event)

Parameters:
Name Type Description
event
Source:

handleSubmitUpdate(event)

Parameters:
Name Type Description
event
Source:

isDeviceValid(device) → {boolean}

Check if device object is valid
Parameters:
Name Type Description
device
Source:
Returns:
Type
boolean

render() → {*}

Source:
Returns:
Type
*

saveMapLocation(lat, lng)

Set Map Location
Parameters:
Name Type Description
lat
lng
Source: