Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.

data-onload attribute? #65

Closed
zhangxin511 opened this issue Jan 29, 2014 · 1 comment
Closed

data-onload attribute? #65

zhangxin511 opened this issue Jan 29, 2014 · 1 comment

Comments

@zhangxin511
Copy link

I am wondering if data-onload in demo page will trigger loaded event for card level? It seems this attribute is not working.

@gjrtimmer
Copy link
Collaborator

Within the demo page, the data-onload attribute of the 'Monitoring Location' is indeed empty. The cities are hardcoded into the example for demo purposes. You are correct, this a a possible typo error in the demo html.

The attribute 'data-loaded' can be used to fire an event for lazy loading data objects into your card. For example by using a basic jQuery Ajax call.

gjrtimmer added a commit that referenced this issue Feb 7, 2014
Removed data-onload="" atribute from card 'Monitoring Location' attribute should be named data-loaded for lazy loading data objects.

Closes #65
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants