Skip to content

yss js functions pager

Bartlomiej Ceglik edited this page Feb 19, 2023 · 3 revisions

pager. for doing some magic.. with your yss

sPager

To index

sPager

Class sPager is a helper from oiyshTerminal family - Main class But we should refer to instance pager Nice!

This one is helping managing sites. Having menu shaders and work with Screens manager. This is only a documentation to help you how to use it to do somethin you want!

Kind: global class

sPager.setPage(pageNo)

Methode - not recomendet shortest way to set now a different site but not the best. Check .goToByHash()

Kind: instance method of sPager

Param Type Description
pageNo integer will sec curent site from this.pages[pageNo] to set now

sPager.goToByHash(url) ⇒ string

Kind: instance method of sPager
Returns: string - correct string to use in onclick="returnValue" to sustain back in browser. Passing arguments and not reload ish

Param Type Description
url string in zone of yss

Example

// clean way to change a page and ads timestamp
// at end as updater to reduce chaching
pager.goToByHash('pageByName=pack it so');
Clone this wiki locally