Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass Array of data Jobs(rb) file to Dashboard(erb) file ? #130

Open
manikandanselva opened this issue Apr 12, 2019 · 1 comment
Open

Pass Array of data Jobs(rb) file to Dashboard(erb) file ? #130

manikandanselva opened this issue Apr 12, 2019 · 1 comment

Comments

@manikandanselva
Copy link

manikandanselva commented Apr 12, 2019

Hai

Dashboard (erb file) :

        <% 
		leaderboardid = [
			'lb_partner1',
			'lb_partner2',
			'lb_partner3'
		]
	%>
	
	<% leaderboardid.each do |name| %>
		<li data-row="1" data-col="1" data-sizex="2" data-sizey="4">
			<div data-id="<%= name %>" data-view="LeaderBoard"></div>
		</li>
	<% end %>

My requirement is leaderboardid array passing from jobs(rb) file ?

@witchi
Copy link

witchi commented Apr 15, 2019

Maybe you can bind the array on a widget and change the DOM (add more nodes) dynamically within the Widget class during onData(). I have seen this here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants