Commit eb6eea285507ea27023d3d890d74d45be193a41e
1 parent
93849902
add more parameters to method get_widget_data
Showing
1 changed file
with
12 additions
and
1 deletions
js/client/Readme_en_us.md
@@ -331,7 +331,18 @@ You can request a resource on the server before rendering. | @@ -331,7 +331,18 @@ You can request a resource on the server before rendering. | ||
331 | 331 | ||
332 | ```javascript | 332 | ```javascript |
333 | Funifier.auth.isAuthenticate(function(isAuthenticate) { | 333 | Funifier.auth.isAuthenticate(function(isAuthenticate) { |
334 | - Funifier.api('get_widget_data', {include_challenges: true}, function(err,json){ | 334 | + Funifier.api('get_widget_data', |
335 | + { | ||
336 | + include_teams: false, | ||
337 | + include_levels: false, | ||
338 | + include_challenges: true, | ||
339 | + include_catalogs: false, | ||
340 | + include_leaderboards: true, | ||
341 | + include_friends: true, | ||
342 | + include_actions: true, | ||
343 | + include_points: true, | ||
344 | + include_game: true | ||
345 | + }, function(err,json){ | ||
335 | json.isAuthenticate = isAuthenticate; | 346 | json.isAuthenticate = isAuthenticate; |
336 | var str = Mustache.render(theme_html,json); | 347 | var str = Mustache.render(theme_html,json); |
337 | render(str,function(config){ | 348 | render(str,function(config){ |