Skip to content

Commit

Permalink
docs(keyboard): move import before usage in sample code (#1702)
Browse files Browse the repository at this point in the history
* docs(keyboard): add missing import to example code
  • Loading branch information
danielsogl authored and jcesarmobile committed Jun 25, 2019
1 parent 044c3d4 commit 7606328
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions site/docs-md/apis/keyboard/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ The Keyboard API provides keyboard display and visibility control, along with ev
## Example

```typescript
import { Plugins } from '@capacitor/core';

const { Keyboard } = Plugins;

// Keyboard Plugin Events

Expand Down Expand Up @@ -65,11 +68,6 @@ window.addEventListener('keyboardDidHide', () => {

// API

import { Plugins } from '@capacitor/core';

const { Keyboard } = Plugins;


Keyboard.setAccessoryBarVisible({isVisible: false});

Keyboard.show();
Expand Down Expand Up @@ -104,4 +102,4 @@ Allowed values are

## API

<plugin-api name="keyboard"></plugin-api>
<plugin-api name="keyboard"></plugin-api>

0 comments on commit 7606328

Please sign in to comment.