-
Notifications
You must be signed in to change notification settings - Fork 39
chore (atomic): migrated atomic-result-template to lit #6159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
* @MapProp name: mustMatch;attr: must-match;docs: The field and values that must be matched by a result item for the template to apply. For example, a template with the following attribute only applies to result items whose `sourcetype` is `YouTube` or `Salesforce`: `must-match-sourcetype="YouTube,Salesforce"`;type: Record<string, string[]> ;default: {} | ||
* @MapProp name: mustNotMatch;attr: must-not-match;docs: The field and values that must not be matched by a result item for the template to apply. For example, a template with the following attribute only applies to result items whose `sourcetype` is not `YouTube`: `must-not-match-sourcetype="YouTube"`;type: Record<string, string[]> ;default: {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is used in storybook. Also, it should probably be @mapProperty
now?
|
||
## Template Conditions | ||
|
||
You can use conditions to display different templates based on result properties: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the order of "declaration" matter?
E.g., if the default template precedes the youtube template in the markup, will the default template apply even to youtube results?
Whether declaration order matters or not, we should document this behavior because right now it's not clear.
β Checklist
.mdx
fileindex.ts
andlazy-index.ts
files.https://coveord.atlassian.net/browse/KIT-4963
Note: This Pull Request contains files from the reactive controllers. You can ignore them as they have already been reviewed and are waiting for final approval to be merged.