src/Table.php
public function resizableColumn($fx = null, $widths = null, $resizerOptions = null)
    {
        $options = [];
        if ($fx && is_callable($fx)) {
            $cb = $this->add('jsCallBack');
            $cb->set($fx, ['widths'=>'widths']);
            $options['uri'] = $cb->getJSURL();
        } elseif ($fx && is_array($fx)) {
            $widths = $fx;
        }

        if ($widths) {
            $options['widths'] = $widths;
        }

        if ($resizerOptions) {
            $options = array_merge($options, $resizerOptions);
        }

        $this->js(true, $this->js()->atkColumnResizer($options));

        return $this;
    }
public function resizableColumn($fx = null, $widths = null, $resizerOptions = null)
    {
        $options = [];
        if ($fx && is_callable($fx)) {
            $cb = $this->add('jsCallBack');
            $cb->set($fx, ['widths'=>'widths']);
            $options['uri'] = $cb->getJSURL();
        } elseif ($fx && is_array($fx)) {
            $widths = $fx;
        }

        if ($widths) {
            $options['widths'] = $widths;
        }

        if ($resizerOptions) {
            $options = array_merge($options, $resizerOptions);
        }

        $this->js(true, $this->js()->atkColumnResizer($options));

        return $this;
    }
public function resizableColumn ( $ fx = null , $ widths = null , $ resizerOptions = null ) { $ options = [ ] ; if ( $ fx && is_callable ( $ fx ) ) { $ cb = $ this -> add ( 'jsCallBack' ) ; $ cb -> set ( $ fx , [ 'widths' => 'widths' ] ) ; $ options [ 'uri' ] = $ cb -> getJSURL ( ) ; } elseif ( $ fx && is_array ( $ fx ) ) { $ widths = $ fx ; } if ( $ widths ) { $ options [ 'widths' ] = $ widths ; } if ( $ resizerOptions ) { $ options = array_merge ( $ options , $ resizerOptions ) ; } $ this -> js ( true , $ this -> js ( ) -> atkColumnResizer ( $ options ) ) ; return $ this ; }
Make columns resizable by dragging column header.

The callback param function will receive two parameter, a jQuery chain object and a json string containing all table columns
name and size. To retrieve columns width, simply json decode the $widths param in your callback function.
ex:
$table->resizableColumn(function($j, $w){
//do somethings with columns width
$columns = json_decode($w);
});


@param null $fx             A callback function with columns widths as parameter.
@param null $widths         An array of widths value, integer only. ex: [100,200,300,100]
@param null $resizerOptions An array of column-resizer module options. see https://www.npmjs.com/package/column-resizer

@throws Exception

@return $this
Make columns resizable by dragging column header .