Members
-
dispatcher :NexusHoratio.base.Dispatcher
-
Details
-
id :string
-
Details
-
logger :NexusHoratio.base.Logger
-
Details
-
name :string
-
Details
-
pathname :RegExp
-
Details
-
spa :NexusHoratio.spa.SPA
-
Details
-
ctor :module:linkedin-tool~Page
-
Description
Alias for
this.constructor.Details
-
scrollerClassName :string
-
Description
Useful default for CSS class name.
Details
-
<readonly> UidMode :Symbol
-
Description
Different ways of computing UIDs for entry elements.
Details
-
entries :NexusHoratio.nav.Scroller
-
Details
-
sections :NexusHoratio.nav.Scroller
-
Details
-
<private> entriesSelectorConnectedAccounts
-
Details
-
<private> onTablistChange
-
Description
Selecting a different tab triggers the Scroller
watchForClicksfeature, which eventually callsfocus(). Since we have a Scroller basedfocusedhandler to ensure the correct tablist button has browser focus, we end up focusing on the old button.We handle this by calling
focus()again on the next JS event loop.Details
Methods
-
addService( Klass, ...rest ) → {NexusHoratio.base.Service}
-
Description
Register a new
NexusHoratio.base.Service.Parameters
Name Type Attributes Description Klassfunction A service class to instantiate. If this is a
Page.Servicesubclass, thepageproperty is also set.restobject <repeatable> Arbitrary objects to pass to constructor.
Returns
Details
-
<private> computePathnameRE( pathname ) → {RegExp}
-
Description
Turn a path into a RegExp.
Parameters
Name Type Description pathnamestring | RegExp A path to convert.
Returns
Details
-
<private> waitUntilReady() → {external:Element}
-
Description
Wait until the page has loaded enough to continue.
Returns
Details
-
cssClassName( extras ) → {string}
-
Description
Derive a CSS className from the name of the subclass.
Parameters
Name Type Description extrasArray.<string> Extract strings to add to the class name.
Returns
Details
-
elementsHeightProcessor( elements ) → {NexusHoratio.web.StyleService~StyleProperties}
-
Description
A useful processor for many LIT pages.
It just sums up height of the matched elements to set a top margin.
Parameters
Name Type Description elementsNexusHoratio.web.StyleService~ElementMap Elements to examine.
Returns
Details
-
navbarAndFriendsFinder() → {NexusHoratio.web.StyleService~ElementMap}
-
Description
A useful finder for many LIT pages.
It finds the navbar and buffer for the content just below it. This is intended for use with
navbarAndFriendsElementsProcessor.The current Style-2 pages seem to be working by accident, not design. Specifically, the content?.parentElement does not work on something like Feed.
Returns
Details
-
navbarAndFriendsElementsProcessor( elements ) → {NexusHoratio.web.StyleService~StyleProperties}
-
Description
A useful processor for many LIT pages.
It computes a top margin that works nicely for consistently positioning items.
Currently only tested with Style.ONE pages.
Parameters
Name Type Description elementsNexusHoratio.web.StyleService~ElementMap Elements to examine.
Returns
Details
-
waitForSelectorToBeGone( selector [, timeout ] ) → {Promise.<NexusHoratio.web~Results>}
-
Description
Wait for matching selector to disappear.
This could possibly be rolled into
NexusHoratio.web.waitForSelector.Parameters
Name Type Attributes Default Description selectorstring CSS selector.
timeoutnumber <optional> 0 Time to wait in milliseconds, 0 disables.
Returns
Details
-
div( n ) → {string}
-
Description
Create a CSS child combinator selector of DIVs.
Parameters
Name Type Description nnumber The number of DIVs in the selector.
Returns
Details
-
<private> modeAttrHelperSelector( attr, ignore ) → {string}
-
Description
Create a CSS attribute selector with an ignore list.
Parameters
Name Type Description attrstring Attribute.
ignoreArray.<string> Values to ignore.
Returns
Examples
[x]:not([[x]="foo"]):not([x]="bar")Details
-
<private> entriesModeToUid( scroller, element, modes ) → {Map.<UidMode, string>}
-
Description
Compute all UIDs for the requested modes.
Parameters
Name Type Description scrollerNexusHoratio.nav.Scroller Scroller instance.
elementexternal:Element Element to examine.
modesArray.<UidMode> Computation modes to consider.
Returns
Details
-
<private> entriesSuggestUids( scroller, element )
-
Description
Suggest UID sources.
Parameters
Name Type Description scrollerNexusHoratio.nav.Scroller Scroller instance.
elementexternal:Element Element to examine.
Details
-
<private> entriesUidFromModes( scroller, element ) → {Object}
-
Description
Return the first UID computed from supported modes.
Parameters
Name Type Description scrollerNexusHoratio.nav.Scroller Scroller instance.
elementexternal:Element Element to examine.
Returns
Details
-
<private> scrollerFinder() → {NexusHoratio.web.StyleService~ElementMap}
-
Returns
Details
-
<private> uniqueSectionIdentifier( scroller, element ) → {string}
-
Parameters
Name Type Description scrollerNexusHoratio.nav.Scroller The calling
Scrollerinstance.elementexternal:Element Element to examine.
Returns
Details
-
<private> entriesUidShim( scroller, element ) → {string}
-
Parameters
Name Type Description scrollerNexusHoratio.nav.Scroller The calling
Scrollerinstance.elementexternal:Element Element to examine.
Returns
Details
-
<private> onSpaActivated( type, pages )
-
Parameters
Name Type Description typestring Event type.
pagesNexusHoratio.spa.Page~Pages Updated pages information.
Details
Events
-
activate
-
Details
-
deactivate
-
Details