-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathtemplate.hbs
19 lines (15 loc) · 1.08 KB
/
template.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{#docs-demo as |demo|}}
{{#demo.example name="phone-input-all-options.hbs"}}
<p>{{phone-input initialCountry="us" number=number update=(action "handleUpdate")}}</p>
<p>The internal phone number you'll want to persist on your backend is <em>\{{number}}: </em><strong>{{number}}</strong>.</p>
<p>In some cases, you may want to persist some additional metadata. Are available:</p>
<ul>
<li>the selected country name <em>\{{selectedCountryData.name}}: </em><strong> {{selectedCountryData.name}}</strong></li>
<li>the selected country ios2 code <em>\{{selectedCountryData.iso2}}: </em><strong>{{selectedCountryData.iso2}}</strong></li>
<li>the selected country ios2 code <em>\{{selectedCountryData.dialCode}}: </em><strong>{{selectedCountryData.dialCode}}</strong></li>
<li>the phone number validity <em>\{{isValidNumber}}: </em><strong>{{isValidNumber}}</strong></li>
<li>the phone number extension <em>\{{extension}}</em>: <strong>{{extension}}</strong></li>
</ul>
{{/demo.example}}
{{demo.snippet "phone-input-all-options.hbs"}}
{{/docs-demo}}