mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
fix(headercolor): solve typo in usage and chore
This commit is contained in:
parent
93696d53f7
commit
bab2971c58
@ -9,13 +9,7 @@ import { Plugin, Cordova } from './plugin';
|
||||
* ```typescript
|
||||
* import { HeaderColor } from 'ionic-native';
|
||||
*
|
||||
* HeaderColor.tint("#becb29").then(
|
||||
* (success) => {
|
||||
* console.log("Your header have a color now")
|
||||
* },
|
||||
* (error) => {
|
||||
* console.log("Your header not have a color now")
|
||||
* }
|
||||
* HeaderColor.tint("#becb29");
|
||||
* ```
|
||||
*/
|
||||
@Plugin({
|
||||
@ -30,9 +24,9 @@ export class HeaderColor {
|
||||
/**
|
||||
* Set a color to the task header
|
||||
* @param color {string} The color
|
||||
* @return {Promise<any>}
|
||||
* @param {Object} Optional callbacks
|
||||
*/
|
||||
@Cordova()
|
||||
static tint(color: string): Promise<any> { return; }
|
||||
static tint(color: string, callbacks?: {success?: Function, failure?: Function}): void { }
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user