@JsType(isNative=true,
name="Object",
namespace="<global>")
public class JsObject
extends Object
Object type.| Modifier and Type | Class and Description |
|---|---|
static interface |
JsObject.PropertyDescriptor
A property descriptor that can be passed to
defineProperty(Object, String, PropertyDescriptor). |
| Constructor and Description |
|---|
JsObject() |
| Modifier and Type | Method and Description |
|---|---|
static void |
defineProperty(Object object,
String name,
JsObject.PropertyDescriptor descriptor)
Adds a property to a JavaScript object.
|
public static void defineProperty(Object object, String name, JsObject.PropertyDescriptor descriptor)
object - the object to which the property should be added, not
nullname - the name of the property to add, not nulldescriptor - a descriptor for the property, not nullCopyright © 2000–2025 Vaadin Ltd. All rights reserved.