<commit_before>﻿@model string

<div>
</div>
<div>
    <div id="accounts" class="ag-fresh" style="height: 400px;"></div>
</div>
<script>
    var columnDefs = [
    {headerName: "Account", field: "id", width: 50},
    {headerName: "Code", field: "accountCode", width: 100},
    {headerName: "Name", field: "accountName", width: 350},
    {headerName: "Description", field: "description", width: 250},
    {headerName: "Cash", field: "isCash", width: 100},
    {headerName: "Balance", field: "balance", width: 100},
    {headerName: "Debit", field: "debitBalance", width: 100},
    {headerName: "Credit", field: "creditBalance", width: 100}
    ];

    var gridOptions = {
        columnDefs: columnDefs,
        rowData: @Html.Raw(Model),
        // PROPERTIES
        rowSelection: 'multiple',
    };

    // wait for the document to be loaded, otherwise
    // ag-Grid will not find the div in the document.
    document.addEventListener("DOMContentLoaded", function() {
        var eGridDiv = document.querySelector('#accounts');
        new agGrid.Grid(eGridDiv, gridOptions);
    });
</script><commit_msg>accounts grid style<commit_after>﻿@model string

<div>
</div>
<div>
    <div id="accounts" class="ag-blue" style="height: 400px;"></div>
</div>
<script>
    var columnDefs = [
    {headerName: "Account", field: "id", width: 50},
    {headerName: "Code", field: "accountCode", width: 100},
    {headerName: "Name", field: "accountName", width: 350},
    {headerName: "Description", field: "description", width: 250},
    {headerName: "Cash", width: 100, cellRenderer: function(val) {
        if(val.data.isCash)
            return '<input type="checkbox" checked disabled />';
        return '<input type="checkbox" disabled />';
    }},
    {headerName: "Balance", field: "balance", width: 100},
    {headerName: "Debit", field: "debitBalance", width: 100},
    {headerName: "Credit", field: "creditBalance", width: 100}
    ];

    var gridOptions = {
        columnDefs: columnDefs,
        rowData: @Html.Raw(Model),
        // PROPERTIES
        rowSelection: 'single',
        enableFilter: true,
        enableColResize: true

    };

    // wait for the document to be loaded, otherwise
    // ag-Grid will not find the div in the document.
    document.addEventListener("DOMContentLoaded", function() {
        var eGridDiv = document.querySelector('#accounts');
        new agGrid.Grid(eGridDiv, gridOptions);
    });
</script>
{'fraction_non_alphanumeric': 0.16243862520458266, 'fraction_numerical': 0.02127659574468085, 'mean_word_length': 3.3505338078291813, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6980518', 'n_tokens_mistral': 811, 'n_tokens_neox': 754, 'n_words': 209}