@@ -348,7 +348,7 @@ If the Messenger app is not installed, the Send button will be hidden. Be sure t
348348
349349** Note** The share dialog will try fallback to browse page sharing if user doesn't have Facebook installed (only for linkContent)
350350
351- ``` typescript
351+ ``` TypeScript
352352showShareDialog (this .linkContent );
353353showMessageDialog (this .linkContent );
354354```
@@ -357,7 +357,7 @@ showMessageDialog(this.linkContent);
357357
358358You can use this method to check if the content can be shared and hide the custom button if can't
359359
360- ``` typescript
360+ ``` TypeScript
361361public canShowPhotosShareDialog = canShareDialogShow (this .photosContent );
362362public canShowGenericMessageDialog = canMessageDialogShow (this .genericContent );
363363```
@@ -537,23 +537,23 @@ export class AppComponent {
537537Read Nativescript [ chapter] ( #create-sharing-content ) for this
538538
539539### Facebook Share Button
540- ``` angular2html
540+ ``` html
541541<FacebookShareButton [content] = " linkContent" ></FacebookShareButton >
542542```
543543
544544### Facebook Send Button
545545
546546If the Messenger app is not installed, the Send button will be hidden. Be sure that your app layout is appropriate when this button is hidden.
547547
548- ``` angular2html
548+ ``` html
549549<FacebookSendButton [content] = " genericContent" ></FacebookSendButton >
550550```
551551
552552### Show Share Dialog Programmatically
553553
554554** Note** The share dialog will try fallback to browse page sharing if user doesn't have Facebook installed (only for linkContent)
555555
556- ``` typescript
556+ ``` TypeScript
557557showShareDialog (this .linkContent );
558558showMessageDialog (this .linkContent );
559559```
@@ -562,11 +562,11 @@ showMessageDialog(this.linkContent);
562562
563563You can use this method to check if the content can be shared and hide the custom button if can't
564564
565- ``` typescript
565+ ``` TypeScript
566566public canShowPhotosShareDialog = canShareDialogShow (this .photosContent );
567567public canShowGenericMessageDialog = canMessageDialogShow (this .genericContent );
568568```
569- ``` angular2html
569+ ``` html
570570<Button (tap) = " onShareDialogPhotos()" text = " Open Share dialog (photos)" *ngIf = " canShowPhotosShareDialog" ></Button >
571571<Button (tap) = " onSendGenericDialog()" text = " Share Message Generic Template" *ngIf = " canShowGenericMessageDialog" ></Button >
572572```
0 commit comments