metreex-analysis.js
/**
 * Builds the sidebar for the list of metrics with their selection boxes.
 * @param array Array of selected metrics
 * @returns {Element} DOM form containing the sidebar of metrics
 */
Builds the sidebar for the list of metrics with their selection boxes.
@param array Array of selected metrics
@returns {Element} DOM form containing the sidebar of metrics
Builds the sidebar for the list of metrics with their selection boxes . @param array Array of selected metrics @returns { Element } DOM form containing the sidebar of metrics
function buildDefaultMetricList(array){
    var list = document.createElement("form");
    list.id = "metricList";
    list.action = "metric_form.asp";
    list.method = "get";
    for (var i = 0; i < array.length; i++){
        var checkbox = document.createElement("input");
        checkbox.type = "checkbox";
        checkbox.name = "metricCheckbox";
        checkbox.value = i;
        checkbox.checked = true;
        var label = document.createElement("label");
        label.appendChild(checkbox);
        label.appendChild(document.createTextNode(array[i].name));
        label.appendChild(document.createElement("br"));
        list.appendChild(label);
    }
    return list;
}
function buildDefaultMetricList ( array ) { var list = document . createElement ( "form" ) ; list . id = "metricList" ; list . action = "metric_form.asp" ; list . method = "get" ; for ( var i = 0 ; i < array . length ; i ++ ) { var checkbox = document . createElement ( "input" ) ; checkbox . type = "checkbox" ; checkbox . name = "metricCheckbox" ; checkbox . value = i ; checkbox . checked = true ; var label = document . createElement ( "label" ) ; label . appendChild ( checkbox ) ; label . appendChild ( document . createTextNode ( array [ i ] . name ) ) ; label . appendChild ( document . createElement ( "br" ) ) ; list . appendChild ( label ) ; } return list ; }
Builds the sidebar for the list of metrics with their selection boxes.
Builds the sidebar for the list of metrics with their selection boxes .