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¶
-
IActionBarProxy
Summary¶
Properties¶
Class Properties¶
Currently none in this class.
Inherited Properties¶
Methods¶
Class Methods¶
- getCaption
- getCaptionAlignment
- getDataSubscriptions
- getItem
- getItems
- getLogo
- getOverflowIcon
- getPreferredCaptionSize
- getPrefersLargeCaption
- getStyle
- getSubhead
- isContainer
- reset
- setCaption
- setCaptionAlignment
- setDataSubscriptions
- setLogo
- setOverflowIcon
- setPreferredCaptionSize
- setPrefersLargeCaption
- setSubhead
Inherited Methods¶
- applyValidation
- base64StringToBinary
- binaryToBase64String
- callFunction
- clearValidation
- clearValidationOnValueChange
- convertFilterCriteriaArrayToJSONString
- convertJSONStringToFilterCriteriaArray
- count
- create
- createFilterCriteria
- createLinkSpecifierProxy
- deleteODataCacheImages
- dismissActivityIndicator
- downloadInProgressForPage
- downloadInProgressForReadLink
- evaluateTargetPath
- evaluateTargetPathForAPI
- executeAction
- formatBase64String
- formatCurrency
- formatDate
- formatDatetime
- formatNumber
- formatPercentage
- formatScientific
- formatTime
- getActionResult
- getAppClientData
- getAppearanceMode
- getAppEventData
- getAppName
- getAvailableThemes
- getBindingObject
- getCaption
- getCircularImage
- getClientData
- getDefinitionValue
- getEventData
- getGlobalDefinition
- getIconTextImage
- getLanguage
- getLogger
- getMobileServiceAppId
- getMobileServiceEndpointUrl
- getName
- getODataCacheImagePath
- getODataProvider
- getPageDefinition
- getPageProxy
- getPasscodeSource
- getPendingDownload
- getReadLink
- getRegion
- getRegions
- getSAPPassportHeaderValue
- getSupportedLanguages
- getTheme
- getType
- getUseInAppCamera
- getValue
- getVersionInfo
- initializeLogger
- isAppInMultiUserMode
- isContainer
- isCurrentPage
- isDemoMode
- isDeviceCompliant
- isMediaLocal
- localizeText
- read
- redraw
- sendMobileServiceRequest
- sendRequest
- setApplicationIconBadgeNumber
- setDebugSettings
- setEditable
- setLanguage
- setRegion
- setStyle
- setTheme
- setUseInAppCamera
- setValidationProperty
- setValue
- setVisible
- showActivityIndicator
- updateProgressBanner
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¶
▸ 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¶
▸ 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