Class 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 Detail

      • JsObject

        public JsObject()
    • Method Detail

      • 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