public function computed(callable $callback) : ComputedComponentDefiner
    {
        return new ComputedComponentDefiner(function (IColumnComponent $chartAxisComponent, array $columnsToLoad) use ($callback) {
            $this->chartComponentCallableMap[$chartAxisComponent] = $callback;

            foreach ($columnsToLoad as $columnToLoad) {
                $column = $this->tableDataSource->getStructure()->getColumn($columnToLoad);
                $this->addColumnToLoad($column);
            }
        });
    }
public function computed(callable $callback) : ComputedComponentDefiner
    {
        return new ComputedComponentDefiner(function (IColumnComponent $chartAxisComponent, array $columnsToLoad) use ($callback) {
            $this->chartComponentCallableMap[$chartAxisComponent] = $callback;

            foreach ($columnsToLoad as $columnToLoad) {
                $column = $this->tableDataSource->getStructure()->getColumn($columnToLoad);
                $this->addColumnToLoad($column);
            }
        });
    }
public function computed ( callable $ callback ) : ComputedComponentDefiner { return new ComputedComponentDefiner ( function ( IColumnComponent $ chartAxisComponent , array $ columnsToLoad ) use ( $ callback ) { $ this -> chartComponentCallableMap [ $ chartAxisComponent ] = $ callback ; foreach ( $ columnsToLoad as $ columnToLoad ) { $ column = $ this -> tableDataSource -> getStructure ( ) -> getColumn ( $ columnToLoad ) ; $ this -> addColumnToLoad ( $ column ) ; } } ) ; }
Defines a table

@param callable $callback

@return ComputedComponentDefiner
Defines a table