add config for data-type and button class