modifyAttribute()
Home > @gooddata/sdk-model > modifyAttribute
modifyAttribute() function
Allows modification of an existing attribute instance.
Signature:
export declare function modifyAttribute(attribute: IAttribute, modifications?: AttributeModifications): IAttribute;
Parameters
Parameter | Type | Description |
---|---|---|
attribute | IAttribute | attribute to modify |
modifications | AttributeModifications | (Optional) modification function |
Returns:
Remarks
The returned attribute will have the same localId as the original attribute. If you would like to assign new/different local identifier to the attribute, you can do that using the modifications where you can provide either new custom localId or indicate that the attribute should fall back to the auto-generated localId.