0

Floating Divs loaded with MVVM

asked 2014-10-02 10:48:06 +0800

afxgroup gravatar image afxgroup
126 1

Hello, i need to create something like this

<div>
    <div>mycontent</div>
    <div>mycontent</div>
    <div>mycontent</div>
    <div>mycontent</div>
    <div>mycontent</div>
</div>

But the divs must be loaded using MVVM. I've tried with Grid, but grid create rows with table. Is there a way with a standard component to create this kind of divs?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-10-02 17:37:48 +0800

cyiannoulis gravatar image cyiannoulis
1191 10

updated 2014-10-02 17:38:42 +0800

The "children" template should do the trick:

<div children="@load(vm.myListModel)" >
  <template name="children">
     <div>
         <label value="@load(each.divContent)" />
     </div>
  </template>
</div>

Hope that helps

Costas

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-10-02 10:48:06 +0800

Seen: 10 times

Last updated: Oct 02 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More