HEX
Server: LiteSpeed
System: Linux sv4.hami.host 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User: armgroup (1008)
PHP: 8.2.32
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, mail, socket_create, socket_create_listen, socket_create_pair, link, dl, openlog, syslog, stream_socket_server, curl_multi_init
Upload Files
File: /home/armgroup/libs/vendor/yajra/laravel-datatables-html/src/Html/Options/Plugins/FixedColumns.php
<?php

namespace Yajra\DataTables\Html\Options\Plugins;

/**
 * DataTables - FixedColumns plugin option builder.
 *
 * @see https://datatables.net/extensions/fixedcolumns/
 * @see https://datatables.net/reference/option/fixedColumns
 * @see https://datatables.net/reference/option/#fixedColumns
 */
trait FixedColumns
{
    /**
     * Set fixedColumns option value.
     *
     * @param bool|array $value
     * @return $this
     * @see https://datatables.net/reference/option/fixedColumns
     */
    public function fixedColumns($value = true)
    {
        $this->attributes['fixedColumns'] = $value;

        return $this;
    }

    /**
     * Set fixedColumns heightMatch option value.
     *
     * @param string $value
     * @return $this
     * @see https://datatables.net/reference/option/fixedColumns.heightMatch
     */
    public function fixedColumnsHeightMatch($value = 'semiauto')
    {
        $this->attributes['fixedColumns']['heightMatch'] = $value;

        return $this;
    }

    /**
     * Set fixedColumns leftColumns option value.
     *
     * @param int $value
     * @return $this
     * @see https://datatables.net/reference/option/fixedColumns.leftColumns
     */
    public function fixedColumnsLeftColumns(int $value = 1)
    {
        $this->attributes['fixedColumns']['leftColumns'] = $value;

        return $this;
    }

    /**
     * Set fixedColumns rightColumns option value.
     *
     * @param int $value
     * @return $this
     * @see https://datatables.net/reference/option/fixedColumns.rightColumns
     */
    public function fixedColumnsRightColumns(int $value = 0)
    {
        $this->attributes['fixedColumns']['rightColumns'] = $value;

        return $this;
    }
}