colorButtonsBar
void
colorButtonsBar
(
butt1
,
butt2
,
butt3
,
butt4
)
Add a new color buttons bar widget to the page (if doesn't exist),
and set the label of the four buttons
- Parameters:
-
butt1 <String>Description for RED button -
butt2 <String>Description for GREEN button -
butt3 <String>Description for YELLOW button -
butt4 <String>Description for BLUE button
- Returns:
void
colorButtonsBarRemove
void
colorButtonsBarRemove
(
)
Removes the color buttons bar widget from the DOM
- Returns:
void
disableLogo
void
disableLogo
(
)
Removes the "for BLOBbox" logo or prevent the render() function to add it
- Returns:
void
messageBar
void
messageBar
(
message
)
Add a message on the button bar, lasts 5 seconds on the screen
- Parameters:
-
message <String>Message to be shown
- Returns:
void
messageBarRemove
void
messageBarRemove
(
)
Removes the message bar widget from the DOM
- Returns:
void
setHighlightCursorColor
void
setHighlightCursorColor
(
selectedColorCode
)
Change the color of the highlighted cursor in the browser.
The codes are 4 bytes: alpha red green blue
In alpha, FF is opaque, 00 transparent
The codes are 4 bytes: alpha red green blue
In alpha, FF is opaque, 00 transparent
- Parameters:
-
selectedColorCode <String>ARGB color string
- Returns:
void
setLabel
void
setLabel
(
message
)
Set browser's label (only for trusted applications)
- Parameters:
-
message <String>The message for the label bar
- Returns:
void
setLoading
void
setLoading
(
loadingState
)
Display or hide the loading dongle on the task bar
- Parameters:
-
loadingState <Boolean>
- Returns:
void
setSelectedCursorColor
void
setSelectedCursorColor
(
selectedColorCode
)
Change the color of the selected cursor in the browser.
The codes are 4 bytes: alpha red green blue
In alpha, FF is opaque, 00 transparent
The codes are 4 bytes: alpha red green blue
In alpha, FF is opaque, 00 transparent
- Parameters:
-
selectedColorCode <String>ARGB color string
- Returns:
void
titleBar.setAbsolutePosition
void
titleBar.setAbsolutePosition
(
)
Sets the position of the title bar to absolute: when scrolling a page, the title bar moves within the rest of the page
- Returns:
void
titleBar.setBackgroundColor
void
titleBar.setBackgroundColor
(
color
)
Changes the background color of the title bar
- Parameters:
-
color <String>RGB color
- Returns:
void
titleBar.setColor
void
titleBar.setColor
(
color
)
Changes the color of the text of title bar
- Parameters:
-
color <String>RGB color
- Returns:
void
titleBar.setFixedPosition
void
titleBar.setFixedPosition
(
)
Sets the position of the title bar to fixed (strongly recommended). When scrolling a page, the title bar doesn't move
- Returns:
void
titleBar.setIcon
void
titleBar.setIcon
(
iconUrl
)
- Parameters:
-
iconUrl <String>The url of an icon file to be displayed in the very beginning of the titleBar. The icon will be resized to a height of 72px, and a variable width.
- Returns:
void
titleBar.setLogo
void
titleBar.setLogo
(
isTVBLOB
)
Changes the logo on the left side of the title bar from "for BLOBbox" to "BLOBbox" only.
- Parameters:
-
isTVBLOB <Boolean>true if the web site is developed by TVBLOB, false if the application is build for BLOBbox by third party developers
- Returns:
void
titleBar.setTitle
void
titleBar.setTitle
(
title
)
Sets or changes the text for the title bar
- Parameters:
-
title <String>A string containing the title; html is suggested not to be used. The string will be trimmed to the right size. Please, try the string on 4/3 PAL displays!!!
- Returns:
void
yesno
void
yesno
(
text
,
callback
,
[default_value]
)
Display a pop up with the text in it, and two options: YES or NO
- Parameters:
-
text <String>The text to be written on the yes/no widget -
callback <Function> -
[default_value] <Boolean>true to set Yes as the default, false otherwise
- Returns:
void