fix(document-viewer): make config properties optional (#1767)

- Before it forced defining all properties
- Option arguments can be found ![here](https://github.com/sitewaerts/cordova-plugin-document-viewer#options)
This commit is contained in:
Tanay Parikh 2017-07-04 21:30:55 -04:00 committed by Ibby Hadeed
parent 2f3331e9ea
commit 5b914d7f15

View File

@ -2,29 +2,29 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
export interface DocumentViewerOptions { export interface DocumentViewerOptions {
title: string; title?: string;
documentView: { documentView?: {
closeLabel: string; closeLabel: string;
}; };
navigationView: { navigationView?: {
closeLabel: string; closeLabel: string;
}; };
email: { email?: {
enabled: boolean; enabled: boolean;
}; };
print: { print?: {
enabled: boolean; enabled: boolean;
}; };
openWith: { openWith?: {
enabled: boolean; enabled: boolean;
}; };
bookmarks: { bookmarks?: {
enabled: boolean; enabled: boolean;
}; };
search: { search?: {
enabled: boolean; enabled: boolean;
}; };
autoClose: { autoClose?: {
onPause: boolean; onPause: boolean;
}; };
} }