Skip to content

Commit

Permalink
Example mock-data for list examples in Kitchen Sink
Browse files Browse the repository at this point in the history
  • Loading branch information
soyjavi committed Dec 20, 2011
1 parent b27554a commit 23da893
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions examples/kitchen-sink/app/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,29 @@ App.Services = (function(lng, App, undefined) {
}
}

lng.View.Template.List.create({
container_id: 'profiles-list',
//Normal List
var parameters = {
container_id: 'list-plain',
template_id: 'profile-tmp',
data: profiles,
order_field: 'id',
order_type: 'asc'
});
data: profiles
};
lng.View.Template.List.create(parameters);

//Indented List
//parameters.container_id = 'list-indented-container';
//lng.View.Template.List.create(parameters);
lng.View.Template.Binding.create('list-indented-container', 'profile-tmp', profiles);

//Rounded List
//parameters.container_id = 'list-rounded';
//lng.View.Template.List.create(parameters);
lng.View.Template.Binding.create('list-rounded-container', 'profile-tmp', profiles);

//Ordered List
parameters.container_id = 'list-ordered';
parameters.order_field = 'name';
parameters.order_type = 'asc';
lng.View.Template.List.create(parameters);
};

mockProfiles();
Expand Down

0 comments on commit 23da893

Please sign in to comment.