Class JsObject

java.lang.Object
com.vaadin.client.flow.util.JsObject

@JsType(isNative=true, name="Object", namespace="<global>") public class JsObject extends Object
JsInterop bridge to the JavaScript Object type.
Since:
1.0
Author:
Vaadin Ltd
  • Constructor Details

    • JsObject

      public JsObject()
  • Method Details

    • defineProperty

      public static void defineProperty(Object object, String name, JsObject.PropertyDescriptor descriptor)
      Adds a property to a JavaScript object.
      Parameters:
      object - the object to which the property should be added, not null
      name - the name of the property to add, not null
      descriptor - a descriptor for the property, not null