Comments (3)
From the Repeater
docs you can call build()
, but the right way is hinted at in that doc:
To set the count property and force a re-render, such as when a data model changes, use
set('count', newCount, true)
, where the last parameter forces the change handler to be called, even if the count remains the same.
from enyo.
thank you very much for the answer, but how to set data ? how to change it ?
I tried things like :
SimpleRepeater.data = myModel.fetch();
and
setData : function (data) {
this.data = data;
this.dataChanged();
}
//then
SimpleRepeater.setData(data);
but this approaches is not working (
from enyo.
You need to use the set()
method to update the data so that the system knows the data has changed. You're trying to combine Collection/Model with a non-data-aware component. If you do not do that, you'll be in better shape. The data is not returned from the fetch
method because it is asynchronous.
from enyo.
Related Issues (20)
- wiki: myKind should be MyKind HOT 1
- wiki: enyo.List example outdated HOT 1
- Image isn't displayed when using an {{enyo/Image}} in its {{'contains'}} sizing mode (setting image as background for a div) in Chrome.
- npm zombie HOT 2
- Using XML-JS with EnyoJS HOT 3
- Can't start enyo project on webOS tv emulator HOT 1
- How to install a moonstone app template ? HOT 4
- Simplerepeater error HOT 1
- Collection is not showing up HOT 3
- How to select element in DataRepeater ? HOT 1
- How to implement routing navigation enyojs ?? HOT 2
- How to implement google map api..?? HOT 1
- Can we use new ES6 standards HOT 1
- Using ares-webos-sdk in CI build HOT 1
- enyo-unselectable style fails on IE8 and 9 HOT 1
- WebService component doesn't work on IE9 & Windows Phone7 for cross site ajax calls HOT 6
- Enyo Needs a Compatibility Table HOT 8
- button animation difficulty with Android Browser HOT 1
- wiki: brace missing in start method HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enyo.