Skip to content

Interface: IActionBarProxy

A designer-facing interface that provides access to a actionbar control.

It is passed to rules to provide access to a actionbar control for application specific customizations.

In addition it provides access to the IControlProxy interface.

Hierarchy

Summary

Properties

Class Properties

Currently none in this class.

Inherited Properties

Methods

Class Methods

Inherited Methods

Methods

getCaption

getCaption(): string

Returns the Caption property value defined for the actionbar control.

Overrides IControlProxy.getCaption

Returns: string


getCaptionAlignment

getCaptionAlignment(): string

Returns the CaptionAlignment property value defined for the actionbar control. Note: CaptionAlignment is only visually applied on Android, but this method returns the value on all platforms.

Returns: string


getDataSubscriptions

getDataSubscriptions(): string[]

Returns the DataSubscriptions property value defined for the actionbar control.

Returns: string[]


getItem

getItem(itemName: string): IActionBarItemProxy

Parameters:

Name Type Description
itemName string takes in _Name property of the actionbar item

Returns: IActionBarItemProxy

returns the ActionBarItemProxy instance of the item by the name


getItems

getItems(): IActionBarItemProxy[]

This method returns the top-level controls of actionbar items for this container

Returns: IActionBarItemProxy[]

The actionbar items controls for this container


getLogo(): string

Returns the Logo property value defined for the actionbar control.

Returns: string


getOverflowIcon

getOverflowIcon(): string

Returns the OverflowIcon property value defined for the actionbar control. Note: OverflowIcon is only visually displayed on iOS, but this method returns the value on all platforms.

Returns: string


getPreferredCaptionSize

getPreferredCaptionSize(): string

Returns the PrefersLargeCaption property value defined for the actionbar control.

Returns: string


getPrefersLargeCaption()

getPrefersLargeCaption(): boolean

Returns the PrefersLargeCaption property value defined for the actionbar control.

Returns: boolean

Deprecated

  • use the [setPreferredCaptionSize] instead

getStyle

getStyle(): any

Returns the Style property value defined for the actionbar control.

Returns: any


getSubhead

getSubhead(): string

Returns the Subhead property value defined for the actionbar control.

Returns: string


isContainer

isContainer(): boolean

Determine if the actionbar control is a container.

Overrides IControlProxy.isContainer

Returns: boolean

true/false.


reset

reset(): Promise<any>

Reset actionbar and its items. The actionbar is then redrawn to reflect the reset state.

Returns: Promise<any>


setCaption

setCaption(caption: string): void

Sets the Caption property of the actionbar control.

Parameters:

Name Type Description
caption string value to set.

Returns: void


setCaptionAlignment

setCaptionAlignment(captionAlignment: string): void

Sets the CaptionAlignment property of the actionbar control. Accepted values are: "Left", "Center". Note: CaptionAlignment is only visually applied on Android, but this method sets the value on all platforms.

Parameters:

Name Type Description
captionAlignment string value to set.

Returns: void


setDataSubscriptions

setDataSubscriptions(dataSubscriptions: string[]): void

Sets the DataSubscriptions property of the actionbar control.

Parameters:

Name Type Description
dataSubscriptions string[] value to set.

Returns: void


setLogo(logo: string): void

Sets the Logo property value of the actionbar control.

Parameters:

Name Type Description
logo string value to set.

Returns: void


setOverflowIcon

setOverflowIcon(overflowIcon: string): void

Sets the OverflowIcon property of the actionbar control. Note: OverflowIcon is only visually displayed on iOS, but this method sets the value on all platforms.

Parameters:

Name Type Description
overflowIcon string value to set.

Returns: void


setPreferredCaptionSize

setPreferredCaptionSize(preferredCaptionSize: string): void

Sets the PreferredCaptionSize property of the actionbar control.

Parameters:

Name Type Description
preferredCaptionSize string value to set.

Returns: void


setPrefersLargeCaption()

setPrefersLargeCaption(prefersLargeCaption: boolean): void

Sets the PrefersLargeCaption property of the actionbar control.

Parameters:

Name Type Description
prefersLargeCaption boolean value to set.

Returns: void

Deprecated

  • use the [setPreferredCaptionSize] instead

setSubhead

setSubhead(subhead: string): void

Sets the Subhead property of the actionbar control.

Parameters:

Name Type Description
subhead string value to set.

Returns: void