How to update a component

Components are changing constantly, for that reason is important to understand the structure of a component in order to customize Its functionality. This guide is about how to update our already created components with new events functions or properties.

A lot of events, methods and properties of our components extends from ControlComponentarrow-up-right, this is the first place that we have to take as reference when we want to implement something new.

Creating properties

There are some properties which do not extends from control, and belongs to a single component. Lets take numericUpDown component as example. This component has some properties that do not extends from ControlComponent.

  1. We need find NumericUpDown.ts file.

  2. Add new properties.

  1. Some properties need a decorator on its setter to notify WebMap Service about the change.

  1. Binding on HTML.

Most of the time we have to bind those new properties on html file using proper angular structure.

Updating properties

The way that we call every property is on model.ts file that you can find on every single component.

Creating Events

Same as properties, there are some events that belongs to a specific component, events have the particularity of being emitted.

  1. We have to declare the EventEmitter.

2. Declare the new function.

3. Some events need a decorator on its function to notify WebMap Service about .

Last updated

Was this helpful?