on 2023 Apr 07 10:21 AM
Hello,
I try to setCaption of Tabs Control but it's now working. I keep have this error:
TypeError: Cannot read properties of undefined (reading 'title')
I attached a rule to the item of Tabs Control and a rule to the caption of item.Have you any idea?Thanks
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
To set the caption via a rule just return the string you want to display
export default function setCaptionRule(clientAPI) {
// Do some stuff in the rule
let myCaption = 'XYZ';
let otherValue = '123';
// Return the caption as a String
return `${myCaption}-${otherValue}`;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
21 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.