Using an array in a sheet template
Template
<div style="display:flex; flex-direction: row;">
{{#each system.bonus_progression}}
<input class="skillcat_bonus_progression_input" type="text" value="{{this}}" data-dtype="Number"/>
{{/each}}
</div>
Javascript
activateListeners(html) {
super.activateListeners(html);
html.find('.skillcat_bonus_progression_input').change(ev => {
let bonusProgression = [];
let bonusProgressionInput = html.find('.skillcat_bonus_progression_input');
for (let i = 0; i < bonusProgressionInput.length; i++) {
bonusProgression.push(bonusProgressionInput[i].value);
}
this.object.update({system: {bonus_progression: bonusProgression}});
});
}
