Skip to content

CardFooterAction

A button communicates the action that it is going to initiate. Users can click a button to begin a process or workflow, or to trigger an action.


When assigning a rule to a property of CardFooterAction, the rule will be passed an instance of the following proxy class as an argument:


CardFooterAction Properties

Property Type Required Default
ButtonType enum No "Text"
Enabled boolean No true
Image Image No
ImagePosition enum No "Leading"
OnPress ActionOrRule No
Semantic enum No "Tint"
Styles object No
Title string No
Visible boolean No true
_Name string Yes
_Type const Yes

ButtonType

Important types of the button.

  • type: enum
  • default: Text

The value of this property must be one of the known values listed below.

Value Description
Primary Emphasize the most important actions.
Secondary Less emphasis, but still require user's attention.
Text Less important actions users can take.

Enabled

Sets the button as enabled or disabled.

  • type: boolean
  • default: true

Image

The image to be displayed with the title.


ImagePosition

Position of the image to be displayed along with the title

  • type: enum
  • default: "Leading"

The value of this property must be one of the known values listed below.

ImagePosition Known Values

Value Description
Leading
Trailing

OnPress

Action/Rule to be executed when the button is pressed. The ClientAPI object to be received in rule function is CardFooterButtonProxy.


Semantic

Use the semantic buttons for positive and negative actions.

  • type: enum
  • default: Tint

The value of this property must be one of the known values listed below.

Value Description
Normal Use it for neutral actions, e.g. Back / Cancel. Not supported for Primary ButtonType.
Tint Use it for positive actions, e.g. Update / Add / Approve.
Negative Use it for negative actions, e.g. Delete / Reset / Reject.

Styles

Style to be applied on the action button.

  • type: object with following properties.
Property Type Required Default
Image string No
Button string No

Image

The string value is a style class name for Image.

Button

The string value is a style class name for Button.


Title

  • type: string

Visible

Sets the visibility of the control.

  • type: boolean
  • default: true

_Name

  • type: string

_Type

  • type: const

The value of this property must be:

"CardFooter.Type.Button"