code: private function datePicker(array $arguments)
      {
          return $this->context->executeJsOnElement($this->element, sprintf(
              "return jQuery({{ELEMENT}}).datepicker(%s);",
              implode(', ', array_map(function ($value) {
                  return in_array($value, ['<date>']) ? $this->date : "'$value'";
              }, $arguments))
          ));
      }
docs: @param array $arguments
  jQuery.fn.datepicker arguments.
  
  @return mixed
  Result of JS execution.