/** *The types for context option. * * @author Harsha * */ export interface ContextOption { iconUrl: string; // url of the image name: string; // name of the option /** * callback function name in parent component on click of this option * */ onClickFn?: string; equals(option: ContextOption): boolean; } export class ContextOptionImpl implements ContextOption { iconUrl: string; name: string; onClickFn?: string; public equals(option: ContextOption): boolean { return this.name === option.name && this.iconUrl === option.iconUrl; } }