ButtonConfiguration

Houses the title, image and the action for an ornament item of button type.

  • Text to be displayed on the button item. Hidden by default. Only displayed if showTitle is set to true.

  • Image to be displayed on the button.

  • Action to be executed upon tapping of the button. Provides the source view for the origin of the action.

  • Whether the title, if available, should be shown alongside the image.

  • Creates a new button model with the given parameters that should be used by a particular OrnamentItem of kind .button.