cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vaibhav Parab (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12040) insertCss API is not working in ionic-2 typescript
Date Thu, 20 Oct 2016 08:06:58 GMT

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

Vaibhav Parab commented on CB-12040:
------------------------------------

I changed the typing to insertCSS. After that compiled the app and run.

But no success.

This is inappbrowser.js file in node_modules.
/**
* Injects CSS into the InAppBrowser window.
* @param css       Details of the script to run, specifying either a file or code key.
*/
InAppBrowser.prototype.insertCss = function (css) { return; };

This is inappbrowser.d.ts file in node_modules.
/**
 * 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>;

I changed in both file to `insertCSS`. but its not working.

> 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-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message