Is it possible to render a List<Element> in Polymer.dart?

Isvara

Given a List<Element> elements, is it possible to render the elements in the template, like this?

<template repeat="{{element in elements}}">
    {{element.SOMETHING}}
</template>

I'd want it to observe the list too, so that it would add and remove elements as the list changes.

Günter Zöchbauer

Update

A ready-to-use element for Dart Polymer 1.0 is bwu-bind-html


{{}} can't include HTML.

You can use something like the <safe-html> tag (see answer to HTML Tags Within Internationalized Strings In Polymer.dart)

<template repeat="{{element in elements}}">
    <safe-html model="{{element.SOMETHING}}"></safe-html>
</template>

but I guess you have to change the <self-html> implementation so that it replaces itself with the content of model instead of adding model to it's content, because ul/ol can't contain <self-html>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to get model for element in iron-list (polymer dart)?

From Dev

Pass parameters to Dart Polymer element

From Dev

Dart - Polymer Custom Element not loaded

From Dev

Refer to sibling Polymer element in Dart?

From Dev

Polymer Dart Custom Element not executing

From Dev

Using a list with Polymer.dart

From Dev

Instantiating polymer element via dart code

From Dev

Use dart polymer element in existing app

From Dev

Catch exception from nested polymer element in Dart

From Dev

Displaying a paper-toast polymer element in dart

From Dev

Watching property changes on Dart polymer-element

From Dev

Create an Instance of Polymer Element in Dart, which is not a HtmlElement

From Dev

How to render shadow DOM in a polymer custom element

From Dev

Polymer Core-List Demo To Dart Code

From Dev

Dart/Polymer binding object attributes of a list

From Dev

Is it possible to extend Polymer element and reuse its style?

From Dev

Is it possible to create a Polymer element without Html?

From Dev

Is it possible to extend Polymer element and reuse its style?

From Dev

is it possible to publish matching getter and setter properties in polymer.dart?

From Dev

My first DART polymer project: No execution / testing possible, nothing works?

From Java

Insert element at the beginning of the list in dart

From Dev

Dart convert every element of list

From Dev

Dart sum list of lists by element

From Dev

How to register a PolymerExpression filter inside a custom element, in Polymer.dart?

From Dev

why am I getting type error on polymer.dart element?

From Dev

How to create a <select> element with polymer-dart repeat

From Dev

Dart Exception: Already registered (Polymer) prototype for element x

From Dev

How to embed a D3 chart in a Polymer.dart element?

From Dev

Dynamically update a stylesheet using dart within a template in a polymer-element

Related Related

  1. 1

    How to get model for element in iron-list (polymer dart)?

  2. 2

    Pass parameters to Dart Polymer element

  3. 3

    Dart - Polymer Custom Element not loaded

  4. 4

    Refer to sibling Polymer element in Dart?

  5. 5

    Polymer Dart Custom Element not executing

  6. 6

    Using a list with Polymer.dart

  7. 7

    Instantiating polymer element via dart code

  8. 8

    Use dart polymer element in existing app

  9. 9

    Catch exception from nested polymer element in Dart

  10. 10

    Displaying a paper-toast polymer element in dart

  11. 11

    Watching property changes on Dart polymer-element

  12. 12

    Create an Instance of Polymer Element in Dart, which is not a HtmlElement

  13. 13

    How to render shadow DOM in a polymer custom element

  14. 14

    Polymer Core-List Demo To Dart Code

  15. 15

    Dart/Polymer binding object attributes of a list

  16. 16

    Is it possible to extend Polymer element and reuse its style?

  17. 17

    Is it possible to create a Polymer element without Html?

  18. 18

    Is it possible to extend Polymer element and reuse its style?

  19. 19

    is it possible to publish matching getter and setter properties in polymer.dart?

  20. 20

    My first DART polymer project: No execution / testing possible, nothing works?

  21. 21

    Insert element at the beginning of the list in dart

  22. 22

    Dart convert every element of list

  23. 23

    Dart sum list of lists by element

  24. 24

    How to register a PolymerExpression filter inside a custom element, in Polymer.dart?

  25. 25

    why am I getting type error on polymer.dart element?

  26. 26

    How to create a <select> element with polymer-dart repeat

  27. 27

    Dart Exception: Already registered (Polymer) prototype for element x

  28. 28

    How to embed a D3 chart in a Polymer.dart element?

  29. 29

    Dynamically update a stylesheet using dart within a template in a polymer-element

HotTag

Archive