Namespace: Options

Options

Extension's Options page

Source:

Members


<private, static, constant> EXT_URI :string

Path to the extension in the Web Store

Type:
  • string
Source:

<private, static, constant> PUSHY_URI :string

Path to my Pushy Clipboard extension

Type:
  • string
Source:

<private, static, constant> t :Object

auto-binding template

Type:
  • Object
Source:

<static> t.pages :Array.<Options.Page>

Array of pages

Type:
Source:

<static> t.route :string

Current Options.Page

Type:
  • string
Source:

Methods


<private, static> _getPageIdx(name) → {int}

Get the index into the Options.pages array

Parameters:
Name Type Description
name string

Options.page route

Source:
Returns:

index into array

Type
int

<private, static> _onMessage(request [, sender] [, response]) → {boolean}

Event: Fired when a message is sent from either an extension process
(by runtime.sendMessage) or a content script (by tabs.sendMessage).

Parameters:
Name Type Argument Description
request Chrome.Msg.Message

details for the message

sender Object <optional>

MessageSender object

response function <optional>

function to call once after processing

Source:
See:
Returns:

true if asynchronous

Type
boolean

<static> _scrollPageToTop()

Scroll page to top

Source:

<static> _setErrorMenuState()

Set enabled state of Error Viewer menu item

Source:

<private, static> _showErrorPage(index)

Show the error viewer page

Parameters:
Name Type Description
index int

index into Options.pages

Source:

<static> _showGooglePhotosPage(index)

Show the Google Photos page

Parameters:
Name Type Description
index int

index into t.pages

Source:

<private, static> _showHelpPage(index)

Show the help page

Parameters:
Name Type Description
index int

index into t.pages

Source:

<static> _showScreensaverPreview(index, prevRoute)

Display a preview of the screen saver

Parameters:
Name Type Description
index int

index into t.pages

prevRoute string

last page selected

Source:

<static> t._computeMenu() → {string}

Computed property: Menu label

Source:
Returns:

i18n label

Type
string

<static> t._computeTitle() → {string}

Computed property: Page title

Source:
Returns:

i18n title

Type
string

<static> t._onNavMenuItemTapped(event)

Event: navigation menu selected Route to proper page

Parameters:
Name Type Description
event Event

ClickEvent

Source:

Type Definitions


Page

Manage an html page that is inserted on demand
May also be a url link to external site

Type:
  • Object
Properties:
Name Type Description
label string

label for Nav menu

route string

element name route to page

icon string

icon for Nav Menu

obj Object | function

something to be done when selected

ready boolean

true if html is inserted

divider boolean

true for divider before item

Source: