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
-
cards :NexusHoratio.nav.Scroller
-
Details
-
entries :NexusHoratio.nav.Scroller
-
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
-
<private> scrollerFinder() → {NexusHoratio.web.StyleService~ElementMap}
-
Returns
Details
-
<private> uniqueCardIdentifier( scroller, element ) → {string}
-
Parameters
Name Type Description scrollerNexusHoratio.nav.Scroller The calling
Scrollerinstance.elementexternal:Element Element to examine.
Returns
Details
-
<private> uniqueEntryIdentifier( scroller, element ) → {string}
-
Parameters
Name Type Description scrollerNexusHoratio.nav.Scroller The calling
Scrollerinstance.elementexternal:Element Element to examine.
Returns
Details
Events
-
activate
-
Details
-
deactivate
-
Details