-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new Events and localization for AttachResult and ResultsFilter compon…
…ents (#28) Added strings for defaults strings of AttachResult and ResultsFilter Added events when attaching / detaching result and filtering
- Loading branch information
Showing
9 changed files
with
124 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { IQueryResult } from 'coveo-search-ui'; | ||
|
||
/** | ||
* List of possible event types triggered by the **AttachResult** component | ||
* when a user interacts with it. | ||
*/ | ||
export enum AttachResultEvents { | ||
Attach = 'attach', | ||
Detach = 'detach' | ||
} | ||
|
||
/** | ||
* Arguments sent with the events coming from the **AttachResult** component. | ||
*/ | ||
export interface IAttachResultEventArgs { | ||
/** | ||
* The **IQueryResult** that is attached to the **AttachResult** component. | ||
*/ | ||
queryResult: IQueryResult; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { Translation, Language } from '../../utils/translation'; | ||
|
||
Translation.register(Language.English, { | ||
AttachResult_Attach: 'Attach Result', | ||
AttachResult_Detach: 'Detach Result' | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* Events triggered by the **ResultsFilter** component. | ||
*/ | ||
export enum ResultsFilterEvents { | ||
Click = 'click' | ||
} | ||
|
||
/** | ||
* Arguments sent with the events coming from the **ResultsFilter** component. | ||
*/ | ||
export interface IResultsFilterEventArgs { | ||
/** | ||
* Whether the filter is currently checked or not. | ||
*/ | ||
checked: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Translation, Language } from '../../utils/translation'; | ||
|
||
Translation.register(Language.English, { | ||
ResultsFilter_Label: 'Filter Results' | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters