Issue I started with the generating click-counter example. I made the click-counter into a library which I then imported into my main file. The click-counter component can be added manually by putting the appropriate HTML into the web page before
Continue readingTag: dart-webui
How do I set the disabled property of a button using Dart Web UI?
Issue Is there a way to disable a button based on the state of my view model? In AngularJS: <button class=”btn” ng-click=”Search()” ng-hide=”canRefresh()” ng-disabled=”query.trim().length == 0″> <i class=”icon-search”></i> Search</button> How do I do this with Dart’s Web UI package? (credit
Continue readingHow can I link to an external Dart library containing the constructor for my web component?
Issue I’ve been following the Dart web-ui codelab. When I embed dart source code inside a web component .html file, I’m not getting any static analysis or autocomplete support in the Dart Editor (there’s an open bug for this http://code.google.com/p/dart/issues/detail?id=7449
Continue readingDart template, and {{}} placeholder in on-click
Issue I am experimenting with various ways to create a HTML5 table from data using Dart. I have the following: <table id=”sitelist”> <thead> <tr><th>Select a site</th> </tr> </thead> <tbody template iterate=”x in siteCells”> <tr on-click=”displaySite(‘{{x[0]}}’)”> <td> {{x[1]}} </td> </tr> </tbody>
Continue readingLoading a web component in Dart M2 (web_ui)
Issue Through my journey of dart, I stumbled upon a “blocker” in terms of loading a component. While having my component defined as followed: <!DOCTYPE html> <element name=”x-foo” constructor=”FooComponent” extends=”button”> <template> <button type=”button” class=”btn {{classes}}”> {{text}} </button> </template> <script type=”application/dart”>
Continue readingWhat is causing a NoSuchMethodErrorImplementation?
Issue I am getting the following error: Stack Trace: #0 NoSuchMethodErrorImplementation._throwNew (dart:core-patch:641:3) #1 init_autogenerated (http://127.0.0.1:3030/C:/dev/CalendarDatePicker/CalendarDatePicker/web/out/CalendarDatePicker.dart:43:26) #2 main (http://127.0.0.1:3030/C:/dev/CalendarDatePicker/CalendarDatePicker/web/out/CalendarDatePicker.html_bootstrap.dart:7:30) Here is my view code: <!DOCTYPE html> <html> <head> <meta charset=”utf-8″> <title>CalendarDatePicker</title> <link rel=”stylesheet” href=”CalendarDatePicker.css”> </head> <body> <element name=”calendar” constructor=”Calendar” extends=”div”> <template>
Continue readingCan Dart bind to id attribute?
Issue I need to generate a list of radio button inputs from a List, and to link the <label for=”xx”> tag to the <input>, each needs its own id. But it seems Dart cannot bind to an id attribute: <div
Continue readingWeb Components in Dart
Issue I’ve got a few questions considering web-components in Dart: 1.) How can we call a method of a component and foremost, how to get access to the component instance? I know we can supply properties to web components but
Continue readingNoSuchMethodError List.reversed with web_ui and latest Dart SDK
Issue Following along with the tutorial at http://www.dartlang.org/docs/tutorials/web-ui/, I’ve just implemented the first example and tried to build. Build command: $DART_SDK/bin/dart –package-root=packages/ packages/web_ui/dwc.dart index.html with SDK version 17072 gives stack trace SEVERE index.html: exception while reading file, original message: AsyncError:
Continue readinghtml5lib error after update Dart SDK version 0.3.2.0_r17657
Issue When i run the build.dart of my Web Component, the out folder is not created and i receive this error: SEVERE web/main.html: exception while reading file, original message: AsyncError: ”package:html5lib/dom.dart’: Error: line 91 pos 51: type ‘LinkedHashMap’ is not
Continue reading