set-border-mode-for-selected-cells

Type: Operation

Sets the specified border mode for the selected cells. The border mode will be visualized by showing only the border highlighting for the targeted borders. In conjunction with the setBordersByCellNodeIdToSelectedCells transforms you can then apply styling to the borders.

Example:

Other

<MastheadToolbarButtons>
   <FxOperationButton
      icon='border-all'
      label=''
      operationName='set-border-mode-for-selected-cells'
      operationData={{ borderMode: 'all' }}
    />
   <FxOperationButton
      icon='border-outer'
      label=''
      operationName='set-border-mode-for-selected-cells'
      operationData={{ borderMode: 'outer' }}
    />
   <FxOperationButton
      icon='border-inner'
      label=''
      operationName='set-border-mode-for-selected-cells'
      operationData={{ borderMode: 'inner' }}
    />
    …
</MastheadToolbarButtons>

Tooltip

Target the borders in the selected cells for this border mode.

Imported operation data

  1. borderMode

    (Required)

    Type: String

    The border mode, which can be one of 'all', 'outer', 'inner', 'top', 'bottom', 'left', 'right', 'inner-horizontal' and 'inner-vertical'. Defaults to 'all'.