public function determineWhichRowsAreSelectable()
    {
        if ($this->config->row_picker_match_rows_by === false) {
            return;
        }

        // collect all selectable rows
        $self = $this;

        $this->dataTable->filter(function ($dataTable) use ($self) {
            /** @var DataTable $dataTable */

            foreach ($dataTable->getRows() as $row) {
                $rowLabel = $row->getColumn('label');

                if (false === $rowLabel) {
                    continue;
                }

                // build config
                if (!isset($self->selectableRows[$rowLabel])) {
                    $self->selectableRows[$rowLabel] = array(
                        'label'     => $rowLabel,
                        'matcher'   => $rowLabel,
                        'displayed' => $self->isRowVisible($rowLabel)
                    );
                }
            }
        });
    }
public function determineWhichRowsAreSelectable()
    {
        if ($this->config->row_picker_match_rows_by === false) {
            return;
        }

        // collect all selectable rows
        $self = $this;

        $this->dataTable->filter(function ($dataTable) use ($self) {
            /** @var DataTable $dataTable */

            foreach ($dataTable->getRows() as $row) {
                $rowLabel = $row->getColumn('label');

                if (false === $rowLabel) {
                    continue;
                }

                // build config
                if (!isset($self->selectableRows[$rowLabel])) {
                    $self->selectableRows[$rowLabel] = array(
                        'label'     => $rowLabel,
                        'matcher'   => $rowLabel,
                        'displayed' => $self->isRowVisible($rowLabel)
                    );
                }
            }
        });
    }
public function determineWhichRowsAreSelectable ( ) { if ( $ this -> config -> row_picker_match_rows_by === false ) { return ; } // collect all selectable rows $ self = $ this ; $ this -> dataTable -> filter ( function ( $ dataTable ) use ( $ self ) { /** @var DataTable $dataTable */ foreach ( $ dataTable -> getRows ( ) as $ row ) { $ rowLabel = $ row -> getColumn ( 'label' ) ; if ( false === $ rowLabel ) { continue ; } // build config if ( ! isset ( $ self -> selectableRows [ $ rowLabel ] ) ) { $ self -> selectableRows [ $ rowLabel ] = array ( 'label' => $ rowLabel , 'matcher' => $ rowLabel , 'displayed' => $ self -> isRowVisible ( $ rowLabel ) ) ; } } } ) ; }
Determines what rows are selectable and stores them in the selectable_rows property in
a format the SeriesPicker JavaScript class can use.
Determines what rows are selectable and stores them in the selectable_rows property in a format the SeriesPicker JavaScript class can use .