Skip to content

Type Editor


Type Editor / @type-editor/tables / commands/set-cell-attr / setCellAttr

Function: setCellAttr()

ts
function setCellAttr(name, value): Command;

Defined in: tables/src/commands/set-cell-attr.ts:20

Creates a command that sets a specific attribute to a given value on the selected cell(s).

The command is only available when the currently selected cell doesn't already have that attribute set to the specified value.

Parameters

ParameterTypeDescription
namestringThe attribute name to set
valueunknownThe value to set the attribute to

Returns

Command

A command that sets the attribute on selected cells