@siberiaweb/components
Version:
44 lines (33 loc) • 764 B
text/typescript
import DataRow from "./DataRow";
/**
* Событие выбора строки.
*
* @template TRecord Тип записи.
*/
export default class SelectRowEvent< TRecord > extends Event {
/**
* Наименование события.
*/
public static readonly EVENT_NAME: string = "GridSelectRow";
/**
* Строка.
*/
private readonly row: DataRow< TRecord >;
/**
* Получение строки.
*/
public getRow(): DataRow< TRecord > {
return this.row;
}
/**
* Конструктор.
*
* @param row Строка.
*/
constructor(
row: DataRow< TRecord >
) {
super( SelectRowEvent.EVENT_NAME );
this.row = row;
}
}