ngx-sp-infra
Version:
Biblioteca de utilitários da Infra.
19 lines (18 loc) • 1.02 kB
TypeScript
import { SelectionModel } from '../models/table/selection-model.model';
import * as i0 from "@angular/core";
export declare class TableSelectionService {
private _selecaoGeral;
selecaoMap: Map<string | number, boolean>;
get selecaoGeral(): boolean;
set selecaoGeral(value: boolean);
constructor();
/** Retorna os registros selecionados dentro de um array do tipo SelectionModel[] ou um array tipo any[]
* @param returnObj Informa se o retorno será uma lista de objetos (SelectionModel[]) ou um array de arrays */
getOnlySelecionados(returnObj?: boolean): SelectionModel[] | any[];
quantidadeSelecionados(): number;
initSelecao(list?: any[], idColumnName?: string): Map<string | number, boolean>;
inverterSelecao(id: string | number): void;
definirSelecaoTotal(list?: any[], selecao?: boolean, idColumnName?: string): void;
static ɵfac: i0.ɵɵFactoryDeclaration<TableSelectionService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<TableSelectionService>;
}