Alterar textos
Client-Side
Ă possĂvel alterar os textos que vĂȘm carregados no Brick. Para isso, no objeto de inicialização do Brick, Ă© preciso enviar o objeto customization.visual.texts
com os valores de textos desejados.
Caso os textos customizados sejam maiores do que o espaço disponĂvel, o texto apresentado serĂĄ interrompido atĂ© o tamanho mĂĄximo permitido e o excedente serĂĄ substituĂdo pelo sĂmbolo "...". Se atente tambĂ©m ao fato que os textos customizados ignoram valores vazios.
Os textos customizĂĄveis estĂŁo indicados abaixo.
const settings = {
customization: {
visual: {
texts: {
formTitle: "string",
emailSectionTitle: "string",
installmentsSectionTitle: "string",
cardholderName: {
label: "string",
placeholder: "string",
},
email: {
label: "string",
placeholder: "string",
},
cardholderIdentification: {
label: "string",
},
cardNumber: {
label: "string",
placeholder: "string",
},
expirationDate: {
label: "string",
placeholder: "string",
},
securityCode: {
label: "string",
placeholder: "string",
},
entityType: {
placeholder: "string",
label: "string",
},
financialInstitution: {
placeholder: "string",
label: "string",
},
selectInstallments: "string",
selectIssuerBank: "string",
formSubmit: "string",
paymentMethods: {
newCreditCardTitle: "string",
creditCardTitle: "string",
creditCardValueProp: " string",
newDebitCardTitle: "string",
debitCardTitle: "string",
debitCardValueProp: "string",
ticketTitle: "string",
ticketValueProp: "string",
},
},
},
},
};
const customization = {
visual: {
texts: {
formTitle: "string",
emailSectionTitle: "string",
installmentsSectionTitle: "string",
cardholderName: {
label: "string",
placeholder: "string",
},
email: {
label: "string",
placeholder: "string",
},
cardholderIdentification: {
label: "string",
},
cardNumber: {
label: "string",
placeholder: "string",
},
expirationDate: {
label: "string",
placeholder: "string",
},
securityCode: {
label: "string",
placeholder: "string",
},
entityType: {
placeholder: "string",
label: "string",
},
financialInstitution: {
placeholder: "string",
label: "string",
},
selectInstallments: "string",
selectIssuerBank: "string",
formSubmit: "string",
paymentMethods: {
newCreditCardTitle: "string",
creditCardTitle: "string",
creditCardValueProp: "string",
newDebitCardTitle: "string",
debitCardTitle: "string",
debitCardValueProp: "string",
ticketTitle: "string",
ticketValueProp: "string",
},
},
},
};
Para alterar os textos dos meios de pagamento offline (tickets, Pix e ATM, por exemplo), dentro do objeto de paymentMethods
utilize o padrĂŁo {paymentMethodId}{ValueProp/Title}
.