github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/tests/acceptance/test_data/mods/dashboard_inputs/dashboard.sp (about)

     1  
     2  
     3  dashboard "testing_dashboard_inputs" {
     4  
     5    title         = "Dashboard input testing"
     6  
     7    input "new_input" {
     8      title       = "Enter a text:"
     9      width       = 4
    10      type        = "text"
    11    }
    12  
    13    table {
    14      type  = "line"
    15      query = query.query_input
    16      args  = {
    17        new_input = self.input.new_input.value
    18      }
    19  
    20      column "Alternative Names" {
    21        wrap = "all"
    22      }
    23    }
    24  }
    25  
    26  query "query_input" {
    27    sql = <<-EOQ
    28      select
    29        'value1' as "column 1",
    30        'value1' as "column 2"
    31    EOQ
    32  }