Overview

Namespaces

  • Budovy
  • Kdyby
    • BootstrapFormRenderer
      • DI
      • Latte
  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Diagnostics
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
      • Diagnostics
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • PhpGenerator
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
  • NetteModule
  • Nextras
    • Datagrid
  • None
  • PHP
  • Tester
    • CodeCoverage
    • Runner
      • Output
  • Vodacek
    • Forms
      • Controls
  • WebLoader
    • Filter
    • Nette

Classes

  • Column
  • Datagrid
  • Overview
  • Namespace
  • Class
  • Tree

Class Datagrid

Control is renderable Presenter component.

Nette\Object
Extended by Nette\ComponentModel\Component implements Nette\ComponentModel\IComponent
Extended by Nette\ComponentModel\Container implements Nette\ComponentModel\IContainer
Extended by Nette\Application\UI\PresenterComponent implements Nette\Application\UI\ISignalReceiver, Nette\Application\UI\IStatePersistent, ArrayAccess
Extended by Nette\Application\UI\Control implements Nette\Application\UI\IRenderable
Extended by Nextras\Datagrid\Datagrid

Direct known subclasses

Budovy\DocumentsDatagrid
Namespace: Nextras\Datagrid
Author: David Grudl
Located at vendor/others/Nextras/Datagrid/Datagrid.php
Methods summary
public Nextras\Datagrid\Column
# addColumn( string $name, string $label = NULL )

Adds column

Adds column

Parameters

$name
string
$label
string

Returns

Nextras\Datagrid\Column
public
# setRowPrimaryKey( mixed $columnName )
public
# getRowPrimaryKey( )
public
# setColumnGetterCallback( mixed $getterCallback )
public
# getColumnGetterCallback( )
public
# setDataSourceCallback( mixed $dataSourceCallback )
public
# getDataSourceCallback( )
public
# setEditFormFactory( mixed $editFormFactory )
public
# getEditFormFactory( )
public
# setEditFormCallback( mixed $editFormCallback )
public
# getEditFormCallback( )
public
# setFilterFormFactory( mixed $filterFormFactory )
public
# getFilterFormFactory( )
public
# setPagination( mixed $itemsPerPage, mixed $itemsCountCallback = NULL )
public
# addCellsTemplate( mixed $path )
public
# getCellsTemplate( )
public
# setTranslator( Nette\Localization\ITranslator $translator )
public
# getTranslator( )
public
# translate( mixed $s, mixed $count = NULL )
public
# render( )
public
# invalidateRow( mixed $primaryValue )
protected
# attached( Nette\ComponentModel\IComponent $presenter )

This method will be called when the component (or component's parent) becomes attached to a monitored object. Do not call this method yourself.

This method will be called when the component (or component's parent) becomes attached to a monitored object. Do not call this method yourself.

Parameters

$presenter
Nette\ComponentModel\IComponent

Overrides

Nette\Application\UI\PresenterComponent::attached()
protected
# getData( mixed $key = NULL )
public
# handleEdit( mixed $primaryValue, mixed $cancelEditPrimaryValue = NULL )
public
# handleSort( )
public
# createComponentForm( )
public
# processForm( Nette\Application\UI\Form $form )
public
# loadState( array $params )

Loads state informations.

Loads state informations.

Parameters

$params
array

Overrides

Nette\Application\UI\PresenterComponent::loadState()
protected Nette\Templating\ITemplate
# createTemplate( string|null $class = NULL )

Parameters

$class
string|null

Returns

Nette\Templating\ITemplate

Overrides

Nette\Application\UI\Control::createTemplate()
public
# handlePaginate( )
Methods inherited from Nette\Application\UI\Control
flashMessage(), getSnippetId(), getTemplate(), isControlInvalid(), redrawControl(), templatePrepareFilters()
Methods inherited from Nette\Application\UI\PresenterComponent
checkRequirements(), formatSignalMethod(), getParameter(), getParameterId(), getParameters(), getPersistentParams(), getPresenter(), getReflection(), getUniqueId(), isLinkCurrent(), lazyLink(), link(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), redirect(), saveState(), signalReceived(), tryCall(), validateParent()
Methods inherited from Nette\ComponentModel\Container
__clone(), addComponent(), createComponent(), getComponent(), getComponents(), removeComponent(), validateChildComponent()
Methods inherited from Nette\ComponentModel\Component
__construct(), __sleep(), __wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), unmonitor()
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod()
Methods inherited from Nette\Application\UI\IRenderable
invalidateControl()
Methods inherited from Nette\ComponentModel\IComponent
setParent()
Constants summary
string ORDER_ASC 'asc'
#
string ORDER_DESC 'desc'
#
Constants inherited from Nette\ComponentModel\IComponent
NAME_SEPARATOR
Properties summary
public array $filter array()
#

Persistent

public mixed $orderColumn
#

Persistent

public string $orderType Nextras\Datagrid\Datagrid::ORDER_ASC
#

Persistent

public integer $page 1
#

Persistent

protected array $filterDataSource array()
#
protected array $columns array()
#
protected Nette\Callback $columnGetterCallback
#
protected Nette\Callback $dataSourceCallback
#
protected mixed $editFormFactory
#
protected mixed $editFormCallback
#
protected Nette\Callback $filterFormFactory
#
protected Nette\Utils\Paginator $paginator
#
protected Nette\Localization\ITranslator $translator
#
protected Nette\Callback $paginatorItemsCountCallback
#
protected mixed $editRowKey
#
protected string $rowPrimaryKey
#
protected mixed $data
#
protected array $cellsTemplates array()
#
Properties inherited from Nette\Application\UI\Control
$snippetMode
Properties inherited from Nette\Application\UI\PresenterComponent
$params
Magic properties inherited from Nette\Application\UI\Control
$snippetId, $template
Magic properties inherited from Nette\Application\UI\PresenterComponent
$presenter, $uniqueId
Magic properties inherited from Nette\ComponentModel\Container
$components
Magic properties inherited from Nette\ComponentModel\Component
$name, $parent
Magic properties inherited from Nette\Object
$reflection
API documentation generated by ApiGen 2.8.0