constructor(id, params) {
    this.id_ = id;
    this.params_ = params;
    if (this.params_.onChange) {
      this.onChange(this.params_.onChange);
    }
    this.enabled_ = true;
  }
Instantiates a new field with the given ID and parameters.
@constructor