سؤال

I have a string YES:YES;No:No;NA:NA, I want to split by colon and make it as an array,And iterate an array and display it in the drop down box. Is it possible? Can anyone help me to resolve this issue?

هل كانت مفيدة؟

المحلول

Inside the template use:

${#strings.arraySplit(yourVar, ':')}
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top