Skip to content

Class: FioriToolbarButtonProxy

FioriToolbarButtonProxy is a developer-facing class that provides access to a toolbar button control for application specific customizations.

Hierarchy

Implements

Summary

Constructors

Properties

Class Properties

Currently none in this class.

Inherited Properties

Accessors

Class Accessors

Currently none in this class.

Inherited Accessors

Methods

Class Methods

Inherited Methods

Constructors

Constructor

+ new FioriToolbarButtonProxy(context: IContext): FioriToolbarButtonProxy

Inherited from FioriToolbarItemProxy.constructor

Parameters:

Name Type
context IContext

Returns: FioriToolbarButtonProxy

Methods

getButtonType

getButtonType(): string

Returns the ButtonType property value defined for the control.

Implementation of IFioriToolbarButtonProxy.getButtonType

Returns: string


getImage

getImage(): string

Returns the Image property value defined for the control.

Implementation of IFioriToolbarButtonProxy.getImage

Returns: string


getImagePosition

getImagePosition(): string

Returns the ImagePosition property value defined for the Button control.

Implementation of IFioriToolbarButtonProxy.getImagePosition

Returns: string


getSemantic

getSemantic(): string

Returns the Semantic property value defined for the Button control.

Implementation of IFioriToolbarButtonProxy.getSemantic

Returns: string


getTitle

getTitle(): string

Returns the Title property value defined for the control.

Implementation of IFioriToolbarButtonProxy.getTitle

Returns: string


setButtonType

setButtonType(type: string): void

Sets the ButtonType property of the control. Accepted values are: "Primary", "Secondary", "Text".

Implementation of IFioriToolbarButtonProxy.setButtonType

Parameters:

Name Type Description
type string value to set.

Returns: void


setImage

setImage(image: string): void

Sets the Image property of the Button control.

Implementation of IFioriToolbarButtonProxy.setImage

Parameters:

Name Type Description
image string value to set.

Returns: void


setImagePosition

setImagePosition(imagePosition: string): void

Sets the ImagePosition property of the Button control. Accepted values are: "Leading", "Trailing".

Implementation of IFioriToolbarButtonProxy.setImagePosition

Parameters:

Name Type Description
imagePosition string value to set.

Returns: void


setSemantic

setSemantic(semantic: string): void

Sets the Semantic property of the Button control. Accepted values are: "Normal", "Tint", "Negative".

Implementation of IFioriToolbarButtonProxy.setSemantic

Parameters:

Name Type Description
semantic string value to set.

Returns: void


setTitle

setTitle(title: string): void

Sets the Title property of the Button control.

Implementation of IFioriToolbarButtonProxy.setTitle

Parameters:

Name Type Description
title string value to set.

Returns: void