Package com.vaadin.client.flow.util
Class JsObject
- java.lang.Object
-
- com.vaadin.client.flow.util.JsObject
-
@JsType(isNative=true, name="Object", namespace="<global>") public class JsObject extends ObjectJsInterop bridge to the JavaScriptObjecttype.- Since:
- 1.0
- Author:
- Vaadin Ltd
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceJsObject.PropertyDescriptorA property descriptor that can be passed todefineProperty(Object, String, PropertyDescriptor).
-
Constructor Summary
Constructors Constructor Description JsObject()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddefineProperty(Object object, String name, JsObject.PropertyDescriptor descriptor)Adds a property to a JavaScript object.
-
-
-
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, notnullname- the name of the property to add, notnulldescriptor- a descriptor for the property, notnull
-
-