CompactProcessControlViewModel

class CompactProcessControlViewModel(val buttonViewModel: TtButtonViewModel = TtButtonViewModel(), val isFixedWidth: Boolean = false) : VisibilityProvider

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.

Constructors

Link copied to clipboard
fun CompactProcessControlViewModel(buttonViewModel: TtButtonViewModel = TtButtonViewModel(), isFixedWidth: Boolean = false)

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