localId
Home > @gooddata/sdk-model > AttributeBuilder > localId
AttributeBuilder.localId property
Sets local identifier (localId) for the attribute. LocalId can be used to reference the attribute within the execution definition.
Normally, builder will generate localId based on contents of the attribute definition - taking all properties into account: in typical scenarios you don't have to call this function at all. The only exception where you have to provide custom local id is if your execution must contain the exact same attribute twice.
For convenience, this method also accepts 'undefined', which indicates that the default local id generation logic should be used.
Signature:
localId: (localId?: Identifier | undefined) => this;