Closed JaneSjs closed 6 months ago
@RomanTsukanov @JaneSjs It should be the following code added into constructor:
this.addExpressionProperty("productIdExpression", (obj: Base, res: any) => { this.productId = res; });
Thank you, Andrew
@RomanTsukanov, please let me know what you think. I updated the Descriptive element demo and added a captionExpression property. It allows users to define an expression for the Caption property. View CodeSandbox
Now, the component has the following options:
caption
- a text property, localizablecaptionExpression
- an expression property which defines a caption based on the expression result@RomanTsukanov suggested another option to update the documentation.
T17578 - Custom Component not getting dynamic value on property https://surveyjs.answerdesk.io/internal/ticket/details/T17578