A React hook for working with this web view's scroll group and Scripture Reference. Returns a
value and a function to set the value for both the SerializedVerseRef and the
ScrollGroupId with which this web view is synced (using this web view's
scrollGroupScrRef property). Use similarly to useState.
Only used in WebView iframes. Please use useScrollGroupScrRef outside of WebViews.
scrRef: The current value for the Scripture reference this web view is on
setScrRef: Function to use to update the Scripture reference this web view is on. If it is
synced to a scroll group, sets the scroll group's Scripture reference
scrollGroupId: The current value for the scroll group this web view is synced with. If not
synced to a scroll group, this is undefined
setScrollGroupId: Function to use to update the scroll group with which this web view is synced
sourceProjectId: The id of the project that last set this web view's scroll group reference
(the source frame of scrRef); this web view's own project when not synced to a scroll group.
undefined when unknown. Useful for a web view that must follow whichever project is driving
the active Scripture reference
A React hook for working with this web view's scroll group and Scripture Reference. Returns a value and a function to set the value for both the SerializedVerseRef and the ScrollGroupId with which this web view is synced (using this web view's
scrollGroupScrRefproperty). Use similarly touseState.Only used in WebView iframes. Please use
useScrollGroupScrRefoutside of WebViews.@returns
[scrRef, setScrRef, scrollGroupId, setScrollGroupId, sourceProjectId]scrRef: The current value for the Scripture reference this web view is onsetScrRef: Function to use to update the Scripture reference this web view is on. If it is synced to a scroll group, sets the scroll group's Scripture referencescrollGroupId: The current value for the scroll group this web view is synced with. If not synced to a scroll group, this isundefinedsetScrollGroupId: Function to use to update the scroll group with which this web view is syncedsourceProjectId: The id of the project that last set this web view's scroll group reference (the source frame ofscrRef); this web view's own project when not synced to a scroll group.undefinedwhen unknown. Useful for a web view that must follow whichever project is driving the active Scripture reference@example