Add function mapping for data-placement attribute