{"size": 1393, "ext": "js", "max_stars_repo_path": "AlloyDemoKit/modules/_protected/Forte.EpiserverRedirects/ClientResources/RedirectsComponent/RedirectsComponentGrid.js", "max_stars_repo_name": "fortedigital/EpiserverRedirects", "max_stars_repo_stars_event_min_datetime": "2020-08-29T11:44:42.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-21T07:31:55.000Z", "max_issues_repo_path": "AlloyDemoKit/modules/_protected/Forte.EpiserverRedirects/ClientResources/RedirectsComponent/RedirectsComponentGrid.js", "max_issues_repo_name": "fortedigital/EpiserverRedirects", "max_issues_repo_issues_event_min_datetime": "2019-06-11T09:02:24.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-07T12:06:53.000Z", "max_forks_repo_path": "EpiserverRedirects/ClientResources/RedirectsComponent/RedirectsComponentGrid.js", "max_forks_repo_name": "fortedigital/EpiAutoAlias", "max_forks_repo_forks_event_min_datetime": "2022-03-21T07:31:58.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T07:31:58.000Z"}
{"max_stars_count": 3, "max_issues_count": 24, "max_forks_count": 1, "avg_line_length": 24.4385964912, "max_line_length": 75, "alphanum_fraction": 0.4680545585}
﻿define("redirectsComponent/RedirectsComponentGrid", [
    "dojo/_base/declare",

    "dgrid/Grid",
    "dgrid/Keyboard",
    "dgrid/Selection",
    'dgrid/OnDemandGrid',

    "dijit/layout/_LayoutWidget"
],

    function (
        declare,

        Grid,
        Keyboard,
        Selection,
        OnDemandGrid,

        _LayoutWidget
    ) {

        return declare([_LayoutWidget], {
            _gridClass: declare([Grid, Selection, Keyboard, OnDemandGrid]),
            grid: null,

            postMixInProperties: function () {
                this.inherited(arguments);
            },

            buildRendering: function () {
                this.inherited(arguments);
            },

            init: function (store) {
                this.grid = new this._gridClass({
                    columns: {
                        oldPattern: "Old pattern"
                    },
                    selectionMode: 'single',
                    cellNavigation: false,
                    store: store
                }, this.domNode);
                this.grid.set("showHeader", false);
            },

            setData: function (data) {
                this.grid.refresh();
                this.grid.renderArray(data);
            },

            setQuery: function (searchQueryModel) {
                this.grid.set("query", searchQueryModel);
            },
        });
    });
