Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 761 Bytes

DijitRegistry.md

File metadata and controls

24 lines (20 loc) · 761 Bytes

DijitRegistry

The DijitRegistry extension adds a couple of considerations for working with Dijit, particularly useful when a dgrid instance is to live inside of a Dijit layout widget. Its primary purpose is to add dgrid instances to the Dijit registry, as well as provide a couple of methods and properties which Dijit widgets will generally expect to exist.

require([
    'dojo/_base/declare',
    'dgrid/OnDemandGrid',
    'dgrid/extensions/DijitRegistry'
], function (declare, OnDemandGrid, DijitRegistry) {
    var grid = new (declare([ OnDemandGrid, DijitRegistry ]))({
        collection: myStore,
        columns: myColumns
    }, 'grid');
});

Usage

See Working with Widgets for more information.