2017 © Pedro Peláez
 

library nette-table

Table component for Nette Framework

image

geniv/nette-table

Table component for Nette Framework

  • Friday, March 30, 2018
  • by geniv
  • Repository
  • 1 Watchers
  • 0 Stars
  • 225 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 6 % Grown

The README.md

Table

Installation

$ composer require geniv/nette-table

or, (*1)

"geniv/nette-table": ">=1.0.0"

require:, (*2)

"php": ">=5.6.0",
"nette/nette": ">=2.4.0",
"dibi/dibi": ">=3.0.0",
"geniv/nette-locale": ">=1.0.0"

Include in application

neon configure:, (*3)

services:
    - Table(%tablePrefix%)

usage:, (*4)

use Table;

protected function createComponentTable1(Table $table)
{
    $table->setTemplatePath(__DIR__ . '/templates/Byty/cenikTable.latte')
        ->setTableName(PriceList::TABLE_NAME)
        ->setTableName(PriceList::TABLE_NAME, 'tab')
        ->setColumns('designation, floor')
        ->setColumns(['designation', 'floor'])
        ->setColumnLocale(null)     //<-default value is null
        ->setColumnLocale('language_col')
        ->addJoin('table_join', 'alias', 'alias.id=tab.id')
        ->addLeftJoin('table_join', 'alias', ['alias.id' => 'tab.id'])
        ->addLeftJoin('table_has_locale', 'lo_alias', 'lo_alias.id=tab.id AND lo_alias.id_locale=' . $table->getIdLocale())
        ->addWhere('image=1')
        ->addWhere('image=3')
        ->addWhere(['image' => 3])
        ->addOrder('position')
        ->addOrder('position', 'desc');

        // $table->getList()

    $table->enableCache(true)
        ->setCacheDependencies([Nette\Caching\Cache::EXPIRE => '30 minutes']);

    return $table;
}

usage:, (*5)

{control table1}

usage in template:, (*6)



{$item['title']}

{if $iterations==0} 0 položek {/if}

The Versions

30/03 2018

dev-develop

dev-develop

Table component for Nette Framework

  Sources   Download

MIT GPL-3.0

The Requires

 

by Radek Frystak

table list nette geniv

26/02 2018

dev-master

9999999-dev

Table component for Nette Framework

  Sources   Download

MIT GPL-3.0

The Requires

 

by Radek Frystak

table list nette geniv

26/02 2018

v1.0.6

1.0.6.0

Table component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

table list nette geniv

12/02 2018

v1.0.5

1.0.5.0

Table component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

table list nette geniv

25/01 2018

v1.0.4

1.0.4.0

Table component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

table list nette geniv

23/01 2018

v1.0.3

1.0.3.0

Table component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

table list nette geniv

19/01 2018

v1.0.2

1.0.2.0

Table component for Nette Framework

  Sources   Download

MIT GPL-3.0

The Requires

 

by Radek Frystak

table list nette geniv

03/08 2017

v1.0.1

1.0.1.0

Table component for Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

by Radek Frystak

table list nette geniv

03/08 2017

v1.0.0

1.0.0.0

Table component for Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

by Radek Frystak

table list nette geniv