OpenSlides/client/src/app/shared/components/empty-selectable.ts
2019-03-11 12:28:34 +01:00

27 lines
477 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
*/
public constructor() {}
/**
* gets the title
*/
public getTitle = () => '';
/**
* gets the list title
*/
public getListTitle = () => this.getTitle();
}