Polymer dart and styling - dart

I am trying to find some information about styling a polymer dart element without much success. None of the info on Stackoverflow seems to work. Does anyone knows of some current information about styling polymer element?
I have seen where the .. tags can be used. I have tried it but with no success. Can an element be styled using a link to a .css file. I have also tried this without much success.
Thanks

I wrote a small blog post about styling custom elements in Dart. Maybe this helps:
http://www.roberthartung.de/dartpolymer-styling-elements/
Regards
Robert

This is the reference documentation I use:
http://www.polymer-project.org/articles/styling-elements.html
http://www.polymer-project.org/docs/polymer/styling.html

Related

Is it possible to create a QR code scanner with jQuery Mobile?

I'm looking for a method to scan QR codes using jQuery Mobile but I haven't found any guide or anything.
I wanted to ask you if there are methods and if you can help me make it happen.
Many thanks in advance
I am using zxing/ngx-scanner with angular found here, it works great, seeing it is a javascript library it may be able to work with jQuery.

Difference between Angular Dart and Polymer Dart

Angular gives you the possibility of dynamic two-way-data-binding. But it allows you also to create custom elements and directives.
So, if I use Angular in Dart, there is no need for Polymer any more, is it right?
There is a recent demo that shows how to combine Polymer's elements with Angular for routing and other app logic.
It looks fun, but I am not sure whether as of today the generated js code size is reasonable enough.
https://github.com/sethladd/dart-angular-polymer-data-binding
Slides for an accompanying talk: https://docs.google.com/file/d/0B3tMhVSd9MFIV0xfRm5NZ0VpNzg/edit
Blog with a summary: http://blog.sethladd.com/2014/02/angular-and-polymer-data-binding.html
Slide 66:
In addition to the discussion referenced by #Paul Collingwood which contains a good explanation.
This similar question has an extensive explanation: What is the difference between Polymer elements and AngularJS directives?

Knockoutjs binding issue JQuery UI tabs

I have the following issue.
In the following JSFiddle1 the dialogs allow the editing of folders and the editing of links.
In this JSFiddle2 I try to add JQuery UI tabs to the previous JSfiddle and apply the model to a div in one of the tabs
ko.applyBindings(foldersModel, document.getElementById("folders-view"));
the dialogs do not work.
Any ideas?
Your're not doing it right, use custom bindings handlers to achieve this instead.
And since I'm such a nice guy I've already made my own bindings public and with a JSFiddle togo with it.. :P
https://github.com/AndersMalmgren/Knockout.Bindings
http://jsfiddle.net/H8xWY/
Sorry, but I've never seen so many logic errors in a code before :D
Anyway, beacuse I was bored and are a nice guy i cleaned up the code somewhat and fixed the bugs
http://jsfiddle.net/uK5KL/20/

Jquery autocomplete wildcard

I am using the jquery.ui.autocomplete plugin, but I noticed when it searches, it uses a wild-card like this '%value%'.
I am using the auto-complete for zip-codes, and I think it would make more sense of the wild-card worked like this 'value%' so when you start typing it only filters out the items that 'start with' what you already typed.
I can't find any documentation on this though.
Anyone have any experience with this?
Much appreciated.
You can use a function as the source option for the autocomplete plugin which should allow you to get the behaviour you want.
There's a very similar question asked here: jQuery UI Autocomplete widget search configuration which has an excellent answer and working example.

jQuery ui Autocomplete with json call, why does it work by itself but not on the main page?

Here are the two urls: Working And Not Working
I cannot for the life of me figure out why I can get the simple version working but the other one is sending the data, receiving it and then not displaying the results.
I thought it was a css issue, but I've tried various methods to correct it and I haven't had any luck.
No javascript errors as well.
Not sure how much this helps, but a quick look reveals that on the test page you include this stylesheet:
http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css
But I cannot find a link to it on the 'not working' page.

Resources