-
Notifications
You must be signed in to change notification settings - Fork 97
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
CC-31652 Introduced datasource.dependable
and datasource.trigger
services.
#2282
CC-31652 Introduced datasource.dependable
and datasource.trigger
services.
#2282
Conversation
...307.0/marketplace/ui-components-library/datasources/datasource-trigger/datasource-trigger.md
Outdated
Show resolved
Hide resolved
...307.0/marketplace/ui-components-library/datasources/datasource-trigger/datasource-trigger.md
Outdated
Show resolved
Hide resolved
...-development/202307.0/marketplace/ui-components-library/datasources/datasource-dependable.md
Outdated
Show resolved
Hide resolved
| - | - | | ||
|type | A datasource type. | | ||
|event | An event type triggered by element. | | ||
|debounce | Delays the emission of values the next datasource (default is `300ms`). | |
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.
Can you clarify the description? Looks like something is missing
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.
What exactly? Description looks clear
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 get how the next datasource
relates to the preceding part of the sentence
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.
datasource
is an angular service and not exactly data source
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.
Still don't get it, but I'll try to guess:
|debounce | Delays the emission of values the next datasource (default is `300ms`). | | |
|debounce | Delays the emission of values of the next datasource (default is `300ms`). | |
|
||
The main module lets you register any `datasource.trigger` by key using the `withEvents()` static method. It assigns the object of datasources to `DatasourceEventTypesToken` under the hood. | ||
|
||
The `resolve()` method gets the trigger element using the `DatasourceTriggerElement` abstract class (token), finds a specific service from `DatasourceEventTypesToken` by `config.event` (from the argument) and returns observable with data (based on the data returned from trigger element) by `Datasource.resolve()`. |
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.
Split this into several sentences and try to remove the braces
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.
In this case context will be missed
|
||
## Interfaces | ||
|
||
Interfaces for the Datasource Trigger configuration and types: |
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.
Types of what?
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.
Interfaces and types for the Datasource Trigger configuration:
Ticket: https://spryker.atlassian.net/browse/CC-31652