Docs
API
  • id

    String

    There are several ways to get link on grid object.
    One of which is to set id and than to use Fancy.getWidget('myGrid').

    Example

    
    new FancyGrid({
      id: 'myGrid'
    });
    
    ...
    var grid = Fancy.getWidget('myGrid');
    

    Another way to get link on grid object is to use renderTo property and
    FancyGrid.get('myGrid')

    Example

    
    <div id="myGrid"></div>
    
    <script>
    new FancyGrid({
      renderTo: 'myGrid'
    });
    
    ...
    var grid = FancyGrid.get('myGrid');
    </script>
    

    Default

    
    undefined