Options for Service.observe
Coly010 opened this issue · comments
Colum Ferry commented
I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:
Current behavior
The observe
function does not allow passing a config object.
Expected behavior
We should be able to pass config options similar to:
Dharmen Shah commented
You can pass config for each state:
this.toast.observe({
loading: { content: "Preparing toast", style: { width: "200px" }, icon: '⏳' },
}),