OpenSlides/client/src/app/shared/components/empty-selectable.ts

27 lines
477 B
TypeScript
Raw Normal View History

2019-02-08 16:02:46 +01:00
import { Selectable } from './selectable';
/**
* Class to display an "empty" Selectable
*/
export class EmptySelectable implements Selectable {
/**
* Since it is just empty, it could be just fixed 0
*/
public id = 0;
/**
* Empty Constructor
*/
2019-03-11 09:48:20 +01:00
public constructor() {}
/**
* gets the title
*/
2019-03-11 09:48:20 +01:00
public getTitle = () => '';
/**
* gets the list title
*/
2019-02-08 16:02:46 +01:00
public getListTitle = () => this.getTitle();
}