我想知道是否有可能在另一个条件面板中有一个条件面板.
例如,如果我有一个包含两个选项的下拉列表:1和2
选择1将显示一组选项,选择2将显示一组不同的选项.
但是有可能将条件面板嵌套在这些条件面板中,这样我就可以在选项1的输入中有另一个下拉列表.
下面是一些我想要做的例子的代码,但这不起作用
selectInput("n", label = h3("Select Option"),
choices = list("1" = 1, "2" = 2),
selected = 1),
#1
conditionalPanel(
condition = "input.n == '1'",
titlePanel("1 Options"),
selectInput("b", label = h4("Select Option"),
choices = list("A" = 1, "B" = 2),
conditionalPanel(
condition = "input.b == '1'",
titlePanel("1 Options")
),
conditionalPanel(
condition = "input.b == '2'",
titlePanel("2 Options")
),
)),
Run Code Online (Sandbox Code Playgroud) 我正在使用highcharts创建条形图,它从DataTable获取数据,我想知道如何在创建图形时使用高图来忽略表中的总计行.
这是我的Highcharts代码:
//HighCharts
function BarChart() {
$('#container').highcharts({
data: {
table: document.getElementById('dataTable')
},
chart: {
type: 'column'
},
title: {
text: 'By Category Results'
},
yAxis: {
allowDecimals: false,
title: {
text: 'Units'
}
},
tooltip: {
formatter: function () {
return '<b>' + this.series.name + '</b><br/>' +
this.point.y + ' ' + this.point.name.toLowerCase();
}
}
});
};
Run Code Online (Sandbox Code Playgroud)
我希望忽略图表的总计行是表格中的第一行.
我试图在用户单击按钮时调用控制器方法,我还需要传递给该方法的变量。这是我的代码。
看法:
<input type="number" id="nbrMetric" name=metricNbr class="form-control" style="width:75px;" min="0">
@Html.ActionLink("Search", "InputTest", "CustomersController", new { @class = "btn btn-info", @Metric = "nbrMetric" })
Run Code Online (Sandbox Code Playgroud)
控制器:
public ActionResult InputTest(int Metric)
{
//Do Something
return View();
}
Run Code Online (Sandbox Code Playgroud)