coveo-search-ui
Version:
Coveo JavaScript Search Framework
17 lines (14 loc) • 370 B
text/typescript
import { KeywordsInput } from './KeywordsInput';
import { l } from '../../../strings/Strings';
export class ExactKeywordsInput extends KeywordsInput {
constructor(public root: HTMLElement) {
super(l('ExactPhrase'), root);
}
public getValue() {
const value = super.getValue();
if (!value) {
return '';
}
return `"<@-${value}-@>"`;
}
}