Skip to content

Commit 1af9956

Browse files
committed
update doc coding tag
1 parent d19dd5c commit 1af9956

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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
352352
showShareDialog(this.linkContent);
353353
showMessageDialog(this.linkContent);
354354
```
@@ -357,7 +357,7 @@ showMessageDialog(this.linkContent);
357357

358358
You 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
361361
public canShowPhotosShareDialog = canShareDialogShow(this.photosContent);
362362
public canShowGenericMessageDialog = canMessageDialogShow(this.genericContent);
363363
```
@@ -537,23 +537,23 @@ export class AppComponent {
537537
Read 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

546546
If 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
557557
showShareDialog(this.linkContent);
558558
showMessageDialog(this.linkContent);
559559
```
@@ -562,11 +562,11 @@ showMessageDialog(this.linkContent);
562562

563563
You 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
566566
public canShowPhotosShareDialog = canShareDialogShow(this.photosContent);
567567
public 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

Comments
 (0)