src/Table.php
public function decoratorFactory(\atk4\data\Field $f, $seed = [])
    {
        $seed = $this->mergeSeeds(
            $seed,
            isset($f->ui['table']) ? $f->ui['table'] : null,
            isset($this->typeToDecorator[$f->type]) ? $this->typeToDecorator[$f->type] : null,
            [$this->default_column ? $this->default_column : 'Generic']
        );

        return $this->_add($this->factory($seed, ['table' => $this], 'TableColumn'));
    }
public function decoratorFactory(\atk4\data\Field $f, $seed = [])
    {
        $seed = $this->mergeSeeds(
            $seed,
            isset($f->ui['table']) ? $f->ui['table'] : null,
            isset($this->typeToDecorator[$f->type]) ? $this->typeToDecorator[$f->type] : null,
            [$this->default_column ? $this->default_column : 'Generic']
        );

        return $this->_add($this->factory($seed, ['table' => $this], 'TableColumn'));
    }
public function decoratorFactory ( \ atk4 \ data \ Field $ f , $ seed = [ ] ) { $ seed = $ this -> mergeSeeds ( $ seed , isset ( $ f -> ui [ 'table' ] ) ? $ f -> ui [ 'table' ] : null , isset ( $ this -> typeToDecorator [ $ f -> type ] ) ? $ this -> typeToDecorator [ $ f -> type ] : null , [ $ this -> default_column ? $ this -> default_column : 'Generic' ] ) ; return $ this -> _add ( $ this -> factory ( $ seed , [ 'table' => $ this ] , 'TableColumn' ) ) ; }
Will come up with a column object based on the field object supplied.
By default will use default column.

@param \atk4\data\Field $f    Data model field
@param mixed            $seed Defaults to pass to factory() when decorator is initialized

@return TableColumn\Generic
Will come up with a column object based on the field object supplied . By default will use default column .