If the dataAttributes config option = 'all' then write every field as data-? attributes on the element.