title: Nativescript FormattedString - tap event on a Span
body: <p>I have the following markup:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;StackLayout paddingLeft="15" paddingRight="15" dock="top" &gt;
    &lt;Label textWrap="true"&gt;
      &lt;Label.formattedText&gt;
        &lt;FormattedString&gt;
          &lt;FormattedString.spans&gt;
            &lt;Span text="By checking 'yes' I understand that this is a legally valid and binding written agreement, and I indicate that I have read, understand, and agree to the terms of my " /&gt;
            &lt;Span text="Agreement. " foregroundColor="#3aba90" tap="viewAgreemnent" /&gt;
            &lt;Span text="Also, by checking 'yes', I certify that I have read and agree to accept electronically the "  /&gt;
            &lt;Span text="Privacy Policy." foregroundColor="#3aba90" tap="viewPolicy" /&gt;
          &lt;/FormattedString.spans&gt;
        &lt;/FormattedString&gt;
      &lt;/Label.formattedText&gt;
    &lt;/Label&gt;
  &lt;/StackLayout&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>This creates one text block with Agreement and Privacy Policy rendered in a different color.  The goal is when the user taps them to execute a function displaying the agreement or the policy.  The problem is that the tap event does not fire for the Spans.  Is this event even available at this level or only on the top Label level?</p>
  
  <p>Any ideas on how to accomplish this?</p>
  
  <p>Thanks.</p>