aboutsummaryrefslogtreecommitdiff
$(() => {
    dtAddCommonHandlers("#tbl-select-population");
    var populationsDataTable = buildDataTable(
        "#tbl-select-population",
        JSON.parse(
            $("#tbl-select-population").attr("data-populations-list")),
        [
            {
                data: (apopulation) => {
                    return `<input type="radio" name="population_id"`
                        + `id="rdo_population_id_${apopulation.InbredSetId}" `
                        + `value="${apopulation.InbredSetId}" `
                        + `class="chk-row-select">`;
                }
            },
            {
                data: (apopulation) => {
                    return `${apopulation.FullName} (${apopulation.InbredSetName})`;
                }
            }
        ]);
});