CompactProcessControlViewModel

@IviExperimental(reasons = [])
class CompactProcessControlViewModel(val buttonViewModel: TtButtonViewModel = TtButtonViewModel(), val isFixedWidth: Boolean = false, val priority: Int = 0) : VisibilityProvider, Prioritizable

A ViewModel that contains the information required to display a button in CompactProcessViewModel as part of the CompactProcessViewModel.primaryControlsViewModel or CompactProcessViewModel.secondaryControlsViewModel list of buttons.

The ViewModel also provides control over the button width, whether by wrapping the button content or having a fixed width assigned.

Parameters

buttonViewModel

The ViewModel that will be associated to the displayed button.

isFixedWidth

When true, the minimum width of the button is locked to the dimension specified by the ttivi_processpanel_button_width attribute. When false, the minimum width is adapted to the button's contents.

priority

The priority of the control. The higher the value, the more important. The importance determines the precedence in visibility. That is, when space is limited the more important controls are visible and less important controls are hidden. Default value is 0.

Constructors

Link copied to clipboard
constructor(buttonViewModel: TtButtonViewModel = TtButtonViewModel(), isFixedWidth: Boolean = false, priority: Int = 0)

Properties

Link copied to clipboard
val buttonViewModel: TtButtonViewModel
Link copied to clipboard
val isFixedWidth: Boolean = false
Link copied to clipboard
open override val isVisible: Boolean
Link copied to clipboard
open override val priority: Int = 0