Package com.vaadin.client.flow.util
Class JsObject
java.lang.Object
com.vaadin.client.flow.util.JsObject
JsInterop bridge to the JavaScript
Object type.- Since:
- 1.0
- Author:
- Vaadin Ltd
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA property descriptor that can be passed todefineProperty(Object, String, PropertyDescriptor). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddefineProperty(Object object, String name, JsObject.PropertyDescriptor descriptor) Adds a property to a JavaScript object.
-
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, notnullname- the name of the property to add, notnulldescriptor- a descriptor for the property, notnull
-