Using a macro for tiles

{ 'title' 'My Polymorphic Dashboard' 'description' 'Change over a random value each 10 seconds' 'tiles' <% [ RAND 10 * ROUND 'value' STORE 0 $value <% 'i' STORE { 'type' 'display' 'w' 1 'h' 1 'x' $i 'y' 0 'data' $i } %> FOR ] %> 'options' { 'autoRefresh' 3 } }
{
  'title' 'My Polymorphic Dashboard'
  'description' 'Change over a random value each 10 seconds with 1 second tile refresh'
     'tiles' <% [
        RAND 10 * ROUND 'value' STORE
        0 $value <%
          'i' STORE
          {
          'type' 'display'
          'w' 1 'h' 1 'x' $i 'y' 0
          'data' $i
          }
        %> FOR
     ]
     %>
    'options' {
      'autoRefresh' 3
    }
}

Found an issue on this page or something missing?

Tell us onSlack iconThe Lounge, the Warp 10 Community Slack.