dart-polymer

print statements in dart-polymer UI not seen in webstorm console

柔情痞子 提交于 2019-12-11 06:57:22
问题 I have some print statements in a Dart UI app. Depending on the UI selection strings are printed to the console. Everything used to work as expected with with Dart with Eclipse plugin. Now I cannot see any print output to the console in my dart-polymer app. Any possible help is appreciated. EDIT 1 .dart import 'dart:html'; import 'package:paper_elements/paper_input.dart'; import 'package:polymer/polymer.dart'; /// A Polymer `<main-app>` element. @CustomTag('main-app') class MainApp extends

Error | Removing disallowed attribute on SelectElement

末鹿安然 提交于 2019-12-11 06:50:48
问题 I am trying to use a button to add a new row in an html table when the button is clicked, and another button to remove the row/s with its checkbox checked. I am experience two problems: Whenever the add-button is clicked I get Removing disallowed attribute SELECT on-change="{{ onChangeTypeFired }}" If I select two checkboxes and clicked the delete row button it throws an indexIndexSizeError: Index or size was negative, or greater than the allowed value. The index provided (2) is greater than

Chrome 39 renders a compiled Dart app as blank

一曲冷凌霜 提交于 2019-12-11 06:24:47
问题 I am using Dart 1.8.3, Windows 8.1, Chrome 39.0.2171.95 m Build a sample Polymer app from File > New Project dialog and chose polymerapp . It works fine in Dartium. Compile to JS. Works fine in Firefox, but only shows a blank page in Chrome: Searched here for some relevant topics and still getting nowhere. Would appreciate hints and guidance. 回答1: I guess this is because you need to start Chrome with --allow-file-access-from-files in order to be able or load local files. Alternatively try to

How do I add a valid default constructor to a dart polymer class?

纵然是瞬间 提交于 2019-12-11 03:22:44
问题 The following code defines the Polymer element What do I need as a valid default constructor for this class? My question is what is needed for a proper constructor import 'package:polymer/polymer.dart'; import 'lib/NPIDefs.dart'; import 'dart:html'; /** * A Polymer click counter element. */ @CustomTag('detail-panel') class NPIDetailPanel extends PolymerElement { @published @observable NPIRecord record; @observable String detailPanelICON = "unfold-less"; NPIDetailPanel.created() : super

core-list-dart: How access variable (@observable) outside data attribute

回眸只為那壹抹淺笑 提交于 2019-12-11 03:03:39
问题 I'm trying to apply a filter through a variable (asDateTime) for a given column to the core-list-dart. This variable is outside of the content data attribute (model). When I access this variable, an error is throws. See the code: * dominio.dart * class ContaPagar { ... List<ContaPagarParcela> contaPagarParcelas; } class ContaPagarParcela { ... DateTime dataVencimento; } * filter.dart * class StringToDateTime extends Transformer<String, DateTime> { String forward(DateTime dateTime) { String

there doesn't seem to be a polymer-layout event

二次信任 提交于 2019-12-11 02:35:09
问题 I'm looking for an event fired by polymer-layout when it's finished laying out, similar to the polymer-grid-layout event. Doesn't seem to be one. Am I missing something? After my attempts at polymer-grid-layout (Autosizing canvas inside a polymer grid layout) I've decided to convert everything to nested polymer-layouts instead. After a few hiccups ( e.g. the dart version of polymer-layout doesn't work if you put polymer-layout as an element directly under template, whereas the js version does

Pub get failed, [1] Resolving dependencies… Incompatible version constraints on code_transformers

左心房为你撑大大i 提交于 2019-12-11 02:23:38
问题 Below is my pubspec.yaml file name: MyApp description: A sample command-line application dependencies: csv_sheet: any redstone: any shelf_static: any browser: any angular: ">=0.14.0 <0.15.0" polymer: ">=0.13.0" core_elements: ">=0.2.0+1" paper_elements: ">=0.1.1+2" I am getting the follow error Pub get failed, [1] Resolving dependencies... Incompatible version constraints on code_transformers: - angular 0.14.0 depends on version >=0.1.4+2 <0.2.0 - polymer 0.13.0 depends on version >=0.2.0 <0

Turn off dart2js during pub build

匆匆过客 提交于 2019-12-11 01:28:29
问题 I am writing a custom transformer for pub build . I would like to turn off compilation of dart files to js during debugging of the transformer to save time. Is it possible? Currently, my simplified pubspec.yaml is name: my_proj dependencies: polymer: any transformers: - my_proj 回答1: There is no option for pub build only for pub serve --no-dart2js . You could temporary modify the file dart/sdk/lib/_internal/pub/lib/src/barback/build_environment.dart in your dart install directory and set

Using Polymer in a Dart Chrome App

南楼画角 提交于 2019-12-10 20:12:43
问题 I am trying to build an app with Dart and Polymer. But polymer scripts seem to be using eval() in web_components/platform.js:32. Has anyone managed to do this? I tried to change CSP but that helped in first place. Does anyone have a working example? Regards and Thanks Robert EDIT manifest.json: { "name": "Animatr app", "version": "1", "author": "Robert Hartung", "manifest_version": 2, "icons": {"128": "animatr_icon.png"}, "app": { "background": { "scripts": ["background.js"] } }, "content

Polymer 1.0 - iron-list - selection

送分小仙女□ 提交于 2019-12-10 19:17:27
问题 Working with iron-list in dart Polymer 1.0. Try to implement a iron-list with selection of an item in the list. This works when the item is a String, but fails for a structured type. When running the code below following printout is obtained. >Contains : false >Uncaught Unhandled exception: >NoSuchMethodError: method not found: 'shorttext' >Receiver: Instance of 'JsObjectImpl' A breakpoint inside (objText != null) list "objText->JavaScriptView-> proto >get/set shorttext" Close, but suggesting