kontent-ai/smart-link

Add helper methods for creating attributes

Opened this issue · 0 comments

Motivation

Manually adding element attributes can be rather repetitive, especially for add buttons, where multiple attributes need to be specified. This could be mitigated to some extent by including helper methods in the SDK.

Proposed solution

Add a set of helper methods which will create the required attributes for each available smartlink button based on user-provided values. See example implementation in our sample app source code.