Skip to content

v1.1.64

Compare
Choose a tag to compare
@Giwi Giwi released this 23 Jan 16:04
· 272 commits to main since this release

Changelog

  • Fix Focus
  • Add rows and cell colors in tabular
  • Add link event

Rows and cells colors sample

{
  'title' 'Test'
  'columns'  [ 'Name' 'A' 'B' 'C' 'Link' ]
  'rows' [
    [ 'label X' 15 56 44 '<' 'a href="https://warp10.io/">Warp 10</' + 'a>' + ]
    [ 'label Y' 1 5 4 '<' 'a href="https://senx.io/">SenX</' + 'a>' + ]
    [ 'label Z' 14 45 78 '<' 'img src="https://warp10.io/assets/img/header-w-white.png" />' + ]
  ]
  'params' {
    'label Y' [ NULL { 'fontColor' 'white' 'bgColor' 'red' } ]
    'label Z' { 'fontColor' 'white' 'bgColor' 'green' }
  }
}

Link event sample

{
    'title' 'Link Sample'
    'options' { 'eventHandler' 'type=link,tag=.*'    }
    'tiles' [
      {
        'type' 'button' 'w' 4 'h' 1 'x' 0 'y' 0
        'title' 'Open new tab'
        'macro' <%
          { 
            'data' <%
              {
                'events' [ 
                  { 'tags' [ 'button' ] 'type' 'link' 'value' { 'link' 'https://warp10.io/' 'target' '_blank' } } 
                ]
              }
            %>
            'globalParams' { 'button' { 'label' 'Open' } } 
          }
        %>
      }

      {
        'type' 'button' 'w' 4 'h' 1 'x' 4 'y' 0
        'title' 'Open self (default)'
        'macro' <%
          { 
            'data' <%
              {
                'events' [ 
                  { 'tags' [ 'button' ] 'type' 'link' 'value' 'https://warp10.io/' } 
                ]
              }
            %>
            'globalParams' { 'button' { 'label' 'Open' } } 
          }
        %>
      }
    ]
}