[ 
https://issues.apache.org/jira/browse/CB-12040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15591054#comment-15591054
 ] 

Vaibhav Parab edited comment on CB-12040 at 10/20/16 7:20 AM:
--------------------------------------------------------------

[~daserge] 

/**
     * Injects CSS into the InAppBrowser window.
     * @param css       Details of the script to run, specifying either a file 
or code key.
     */
    insertCss(css: {
        file?: string;
        code?: string;
    }): Promise<any>;

This is inappbrowser.d.ts type definition file 


In case if I write 'browser.insertCSS' it gives TSLint error Property 
'insertCSS' does not exist on type 'InAppBrowser'.


was (Author: vaibsvb):
[~daserge] 

/**
     * Injects CSS into the InAppBrowser window.
     * @param css       Details of the script to run, specifying either a file 
or code key.
     */
    insertCss(css: {
        file?: string;
        code?: string;
    }): Promise<any>;

This is inappbrowser.d.ts type definition file 

> insertCss API is not working in ionic-2 typescript
> --------------------------------------------------
>
>                 Key: CB-12040
>                 URL: https://issues.apache.org/jira/browse/CB-12040
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin InAppBrowser
>         Environment: Ubuntu 14.04, Ionic-2 CLI 2.1.0, Ionic-2 framework 
> 2.0.0-rc.0
>            Reporter: Vaibhav Parab
>
> I'm using `cordova-plugin-inappbrowser` in `IONIC-2` framework.
> When I install this plugin through CLI, the `inappbrowser.d.ts` file is 
> generated in node_modules.
> I imported the `InAppBrowser` from node_modules and used in my typescript 
> scripts where I want to open InAppBrowser.
> InAppBrowser is opened properly. After that I added `executeScript` and 
> `insertCss` API's using InAppBrowser's instance.
> like `let browser = new InAppBrowser('http://google.com', '_blank', 
> 'location=yes');`
> `browser.insertCss(...... here is my css code ....)`
> but this `insertCss` is not working.
> How can I make this work?
> Any help is appreciated.
> Thanks in advance.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to