Skip to content

Instantly share code, notes, and snippets.

@GitMoIO
Created March 5, 2015 19:44
Show Gist options
  • Save GitMoIO/c9fde40aa2abd0e99c1b to your computer and use it in GitHub Desktop.
Save GitMoIO/c9fde40aa2abd0e99c1b to your computer and use it in GitHub Desktop.
<form> <label>TestDynamicPanel</label> <fieldset submitButton="false"> <input type="dropdown" token="show1"> <label>Dropdown1</label> <populatingSearch fieldForLabel="temp" fieldForValue="temp">|gentimes start=-1 | eval temp="ColumnChart" | table temp</populatingSearch> </input> <input type="dropdown" token="show2"> <label>Dropdown2</label> <populatingSearch fieldForLabel="temp" fieldForValue="temp">|gentimes start=-1 | eval temp="LineChart" | table temp</populatingSearch> </input> <input type="dropdown" token="show3"> <label>Dropdown3</label> <populatingSearch fieldForLabel="temp" fieldForValue="temp">|gentimes start=-1 | eval temp="Table" | table temp</populatingSearch> </input> </fieldset> <row> <panel> <chart depends="$show1$"> <title>Details for $submitted:sourcetype|s$</title> <searchString>index=_internal | timechart count</searchString> <earliestTime>-15m</earliestTime> <latestTime>now</latestTime> <option name="charting.chart">column</option> </chart> <chart depends="$show2$"> <title>Details for $submitted:sourcetype|s$</title> <searchString>index=_internal | timechart count</searchString> <earliestTime>-15m</earliestTime> <latestTime>now</latestTime> <option name="charting.chart">line</option> </chart> <table depends="$show3$"> <searchString>index=_internal | timechart count</searchString> <earliestTime>-15m</earliestTime> <latestTime>now</latestTime> </table> </panel> </row> </form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment