You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in models/concordance/actions, define a new action HighlightTokensMatchingPosAttr where payload should contain at least a list of values (Array<string>) and positional attribute name (e.g. lemma).
add something like shadowLines:Array<Line> to the ConcordanceModelState
see the method changePage and use the initial part where const args is created and a respective ajax action is triggered and define a new method (e.g. loadShadowLines) which will replace all the args URL attributes (do not confuse with the constant args above) by the value of the positional attribute defined by the action from (1)
create a side-effect action HighlightTokensMatchingPosAttrDone which (once shadowLines are loaded) will go through all the "shadow" lines and compare respective values with the ones provided by action (1). In case of a match, go to the exact same position in lines and add some CSS class to highlight a matching token
The text was updated successfully, but these errors were encountered:
models/concordance/actions
, define a new actionHighlightTokensMatchingPosAttr
where payload should contain at least a list of values (Array<string>
) and positional attribute name (e.g.lemma
).shadowLines:Array<Line>
to theConcordanceModelState
changePage
and use the initial part whereconst args
is created and a respective ajax action is triggered and define a new method (e.g.loadShadowLines
) which will replace all theargs
URL attributes (do not confuse with the constantargs
above) by the value of the positional attribute defined by the action from (1)HighlightTokensMatchingPosAttrDone
which (onceshadowLines
are loaded) will go through all the "shadow" lines and compare respective values with the ones provided by action (1). In case of a match, go to the exact same position inlines
and add some CSS class to highlight a matching tokenThe text was updated successfully, but these errors were encountered: