newAttribute()
Home > @gooddata/sdk-model > newAttribute
newAttribute() function
Creates a new attribute with the specified display form ref and optional modifications and localIdentifier.
Signature:
export declare function newAttribute(displayFormRefOrId: ObjRef | Identifier, modifications?: AttributeModifications): IAttribute;
Parameters
Parameter | Type | Description |
---|---|---|
displayFormRefOrId | ObjRef | Identifier | ref or identifier of the attribute display form |
modifications | AttributeModifications | (Optional) optional modifications (e.g. alias, etc.) |
Returns: