protected function applyClosuresOnPaginatedList(): void
    {
        $disableLinesClosure = $this->getAttribute('disableLinesClosure');
        $highlightLinesClosure = $this->getAttribute('highlightLinesClosure');
        $this->getAttribute('list')->getCollection()->transform(function ($model) use (
            $disableLinesClosure,
            $highlightLinesClosure
        ) {
            if (isset($disableLinesClosure)) {
                $model->setAttribute('disabled', $disableLinesClosure($model));
            }
            if (isset($highlightLinesClosure)) {
                $model->setAttribute('highlighted', $highlightLinesClosure($model));
            }

            return $model;
        });
    }
protected function applyClosuresOnPaginatedList(): void
    {
        $disableLinesClosure = $this->getAttribute('disableLinesClosure');
        $highlightLinesClosure = $this->getAttribute('highlightLinesClosure');
        $this->getAttribute('list')->getCollection()->transform(function ($model) use (
            $disableLinesClosure,
            $highlightLinesClosure
        ) {
            if (isset($disableLinesClosure)) {
                $model->setAttribute('disabled', $disableLinesClosure($model));
            }
            if (isset($highlightLinesClosure)) {
                $model->setAttribute('highlighted', $highlightLinesClosure($model));
            }

            return $model;
        });
    }
protected function applyClosuresOnPaginatedList ( ) : void { $ disableLinesClosure = $ this -> getAttribute ( 'disableLinesClosure' ) ; $ highlightLinesClosure = $ this -> getAttribute ( 'highlightLinesClosure' ) ; $ this -> getAttribute ( 'list' ) -> getCollection ( ) -> transform ( function ( $ model ) use ( $ disableLinesClosure , $ highlightLinesClosure ) { if ( isset ( $ disableLinesClosure ) ) { $ model -> setAttribute ( 'disabled' , $ disableLinesClosure ( $ model ) ) ; } if ( isset ( $ highlightLinesClosure ) ) { $ model -> setAttribute ( 'highlighted' , $ highlightLinesClosure ( $ model ) ) ; } return $ model ; } ) ; }
Apply the closures on the paginated list.

@return void
Apply the closures on the paginated list .