feature request: @output event?
taivu opened this issue · comments
this is a feature request. It would be nice to have an event emitted so once something is 'sticky-ed', we can do something programmatically to react to it (showing a notification or getting data, etc).
thanks for your time.
@taivu @CapitanFindusFI just updated to v.1.1.8. your are now able to listen for events named
- "stickyStatus" and
- "stickyPosition"
the following picture shows the available attributes of the events. first object shows attributes from the sticky position event, the second from sticky status.
the attributes
- marginTop and
- marginBottom
from sticky position can be set via property binding on the sticky component. if you need the events for styling the css classes
- .is-sticky and
- .boundary-reached
are set accordingly to the sticky status.
thanks for your patience. hope this helps.