Class: MatiButton

.Components.Input.MatiButton(clientid, flowid, color, metadata, events, href, main_style, label)

new MatiButton(clientid, flowid, color, metadata, events, href, main_style, label)

Componente que renderiza un mati-button

Parameters:
Name Type Description
clientid string

dato requerido por Mati

flowid string

dato requerido por Mati

color string

color del botón

metadata string

ver documentación de Mati

events string

Json string, cada propiedad del json es un tipo evento de Mati que se va a ejecutar como un ReactorLink al producirse un evento

href string

Operacion que se va a llamar en los eventos de Mati

main_style string

Estilos en formato html que se van a asignar al componente metamap-button-element

label string

Etiqueta del boton

Source:
Example
<mati_button 
  clientid="123456789abcdefgh"
  flowId="123456789abcdefgh"          
  color="#ff3f72"
  main_style="border-radius:18px; height: 36px; font-size: 14px; font-weight: 600;"
  label="VALIDÁ TU DNI"
  metadata='{"user_id":"{{userId}}"}'
  events='{
            "userFinishedSdk": {"data": {"evento": "completo"}, "target": "navigate"},
            "exitedSdk": {"data": {"evento": "saliosdk"}, "target": "navigate"}
          }'
  href="AppHomeVerificacion"
></mati_button>