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 |
ref or identifier of the attribute display form | |
modifications |
(Optional) optional modifications (e.g. alias, etc.) |
Returns: