Skip to content

How to use Appearance

abuturla edited this page Aug 3, 2018 · 14 revisions

buildfire.appearance

Use this property to modify the appearance of the plugin and sometimes the surrounding platform

buildfire.appearance.setHeaderVisibility(value)

Use this to hide and show the Header in the Control Panel - Control section. Use this in your control content, Header

arguments

  • value (bool) 'true'/'false' example buildfire.appearance.setHeaderVisibility(false);

buildfire.appearance.titlebar.show()

Use this to force showing the title bar on the app emulator or the mobile app. this function only works inside the widget.

buildfire.appearance.titlebar.hide()

Use this to force hiding the title bar on the app emulator or the mobile app. this function only works inside the widget.

buildfire.appearance.getAppTheme(callback)

use this to retrive the appTheme object in the callback as follows

buildfire.appearance.triggerOnUpdate = function(){
     buildfire.appearance.getAppTheme(function(err, appTheme){
     //apply theme changes here
 });
}
Clone this wiki locally