PlusMinusNudge
Adds or subtracts a fixed amount from numeric cells.
Scope is numeric columns only. The increment key sets the cell to its current value plus NudgeValue; the decrement key subtracts NudgeValue. Omit Rule to apply the nudge on every row in scope. Suspend with IsSuspended.
export interface PlusMinusNudge extendsExtends
Properties
| Property | Type | Description |
|---|---|---|
| DecrementKey | string | Optional keyboard key that decreases cell values for this nudge only (overrides the global decrementKey in plusMinusOptions).Can be a single key (e.g. '-') or a keyboard shortcut combination that uses + as the gluebetween parts (e.g. 'shift+Backspace', 'ctrl+ArrowDown'). Supported modifiers are ctrl,cmd, alt and shift. |
| IncrementKey | string | Optional keyboard key that increases cell values for this nudge only (overrides the global incrementKey in plusMinusOptions).Can be a single key (e.g. '+') or a keyboard shortcut combination that uses + as the gluebetween parts (e.g. 'shift+Enter', 'ctrl+ArrowUp'). Supported modifiers are ctrl, cmd,alt and shift. |
| Name | string | Name of the Plus Minus Nudge rule |
| NudgeValue | number | Amount added by the increment key and subtracted by the decrement key. |
| Rule | string | (Optional) AdapTableQL boolean expression, evaluated per row, to determine whether to apply the Nudge |
| Scope | ColumnScope<NumberScopeDataType> | Numeric columns where the nudge is applied |
| IsReadOnly | boolean | Sets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full') |
| IsSuspended | boolean | Suspends (i.e. turns off) an Adaptable Object |
Property Details
DecrementKey
Optional keyboard key that decreases cell values for this nudge only (overrides the
global decrementKey in plusMinusOptions).
Can be a single key (e.g. '-') or a keyboard shortcut combination that uses + as the glue
between parts (e.g. 'shift+Backspace', 'ctrl+ArrowDown'). Supported modifiers are ctrl,
cmd, alt and shift.
DecrementKey?: string;Property Value
string
IncrementKey
Optional keyboard key that increases cell values for this nudge only (overrides the
global incrementKey in plusMinusOptions).
Can be a single key (e.g. '+') or a keyboard shortcut combination that uses + as the glue
between parts (e.g. 'shift+Enter', 'ctrl+ArrowUp'). Supported modifiers are ctrl, cmd,
alt and shift.
IncrementKey?: string;Property Value
string
Name
Name of the Plus Minus Nudge rule
Name: string;Property Value
string
NudgeValue
Amount added by the increment key and subtracted by the decrement key.
NudgeValue: number;Property Value
number
Rule
(Optional) AdapTableQL boolean expression, evaluated per row, to determine whether to apply the Nudge
Rule?: string;Property Value
string
Scope
Numeric columns where the nudge is applied
Scope: ColumnScope<NumberScopeDataType>;Property Value
ColumnScope<NumberScopeDataType>
IsSuspended
Inherited from SuspendableObject
Suspends (i.e. turns off) an Adaptable Object
IsSuspended?: boolean;Property Value
boolean
IsReadOnly
Inherited from AdaptableObject
Sets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')
IsReadOnly?: boolean;Property Value
boolean