? for the group... i have been playing with the current update to the
chrome dev editor. they added polymer to the chrome js app projects and
I'm struggling on getting an event sent up.. is there a special way of
doing this? i can get a click event to work, just not the 'enter' pressed
on a core-input tag.
js
var searchGroup = document.querySelector('#searchGroup');
searchGroup.searchClicked = function() {
var text = searchGroup.value;
console.log(text);
}
searchGroup.inputed = function() {
console.log('inputed..');
}
html
<template id="searchGroup" is="auto-binding">
<core-icon-button icon="search" id="btnSearch"
on-click="{{searchClicked}}"></core-icon-button>
<core-input willvalidate placeholder="Search" id="core_input"
change="{{inputed}}" value="{{value}}"></core-input>
</template>
any thoughts?
On Monday, August 19, 2013 5:00:46 PM UTC-5, Hoa V. Dinh wrote:
>
> Hi polymer dev,
>
> I'm trying to run Polymer in a Chrome Packaged Apps in Chrome Canary.
>
> 1. I checkout the following:
> https://github.com/dinhviethoa/polymer-simple
>
> polymer-simple/polymer/ folder contains the minified version of platform
> and polymer.
>
> 2. In chrome://flags, I enabled the following options:
>
> > Enable experimental Web Platform features. Mac, Windows, Linux, Chrome
> OS, Android
> Enable experimental Web Platform features that are in development.
> #enable-experimental-web-platform-features
>
> > Enable apps-devtool app. Mac, Windows, Linux, Chrome OS
> An app to develop apps / extensions. #enable-apps-devtool-app
>
> 3. Restart Chrome
>
> 4. In chrome://extensions, I checked enabled "Developer Mode".
>
> 5. In a new tab page, from the application list, I run "Apps Developer
> Tools".
>
> 6. I used "Load Unpacked" and chose the folder polymer-simple/
>
> 7. In the list of application, I used the "launch" option for "polymer
> simple".
>
> -> I don't see the polymer UI rendering.
>
> 8. Back in "Apps Developer Tools" window, polymer simple > Inspect views >
> simple.html.
> It opens the web inspector. I clicked on "Console".
>
> The following logs shown:
> Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an
> allowed source of script in the following Content Security Policy
> directive: "default-src 'self' chrome-extension-resource:". Note that
> 'script-src' was not explicitly set, so 'default-src' is used as a fallback.
> tap.js:76
> (anonymous function) tap.js:76
> Uncaught TypeError: Cannot redefine property: shadowRoot deprecated.js:12
> Uncaught ReferenceError: Polymer is not defined build.js:1
>
> Could you help me investigate what's going on?
> Especially, "shadowRoot redefined" and "Polymer not defined" looks strange.
>
> Thanks!
>
> --
> Hoa V. Dinh
>
>
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/6011e3ff-3901-4eb6-962d-17e2b52e5b15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.