SFTITLEBAR
** This class will not be supported in 2015.
All functionalities of sfTitleBar class are more improved, integrating with CAPH. Therefore sfTitleBar class is not supported since 2015 Smart TV. To use functions of sfTitleBar class, refer to here.
This is the class for TitleBar UI components.
Add the following line for sfTitleBar class into a html file your own : <script type="text/javascript" src="$MANAGER_WIDGET/Common/af/2.0.0/loader.js"></script> |
You can declare sfTitleBar class like this : ex) $('#div ID').sfTitleBar('method Name', parm1, parm2); |
Methods
setIcon | ||
Description | ||
This function sets icon that is displayed with titlebar.(icon is located left-upper side of TitleText) | ||
Parameters | ■icon - Object - object containing the information of icon. * URL : (String) Icon URL * width : (Number) Icon width by pixel. (Optional) * height : (Number) Icon height by pixel. (Optional) | |
Return | ■Void | |
Emulator Support | N | |
SDK Constraint | None | |
Example | ||
$("#title").sfTitleBar("setIcon", {URL: 'icon1.png', width: 30, height: 30}); |
setSubTitle | ||
Description | ||
This function sets subTitleText. | ||
Parameters | ■subtitle - String - text of the sub title. | |
Return | ■Void | |
Emulator Support | N | |
SDK Constraint | None | |
Example | ||
$("#title").sfTitleBar("setSubTitle", 'sub title text'); |
setTitle | ||
Description | ||
This function sets TitleText. | ||
Parameters | ■title - String - text of the title Bar. | |
Return | ■Void | |
Emulator Support | N | |
SDK Constraint | None | |
Example | ||
$("#title").sfTitleBar("setTitle", 'title text'); |
showArrow | ||
Description | ||
This function sets that Arrow shows or not. | ||
Parameters | ■showarrow - Boolean - change arrow visible status | |
Return | . | |
Emulator Support | N | |
SDK Constraint | None | |
Example | ||
$("#titlebarTestArea").sfTitleBar('option', 'showArrow', this.curOpts.showarrow); |
hide | ||
Description | ||
This function hides TitleBar. | ||
Parameters | none | |
Return | ■Void | |
Emulator Support | N | |
SDK Constraint | None | |
Example | ||
$("#title").sfTitleBar("hide"); |
show | ||
Description | ||
This function shows TitleBar. | ||
Parameters | none | |
Return | ■Void | |
Emulator Support | N | |
SDK Constraint | None | |
Example | ||
$("#titlebarTestArea").sfTitleBar(this.curOpts).sfTitleBar('show'); |