|
@@ -200,9 +200,9 @@ The property has been "renamed" in the binding and from now on, whenever `comman
|
|
|
|
|
|
|
|
#### Processing a property value
|
|
#### Processing a property value
|
|
|
|
|
|
|
|
-Another use case is processing a bounded value. For example: you may need to disable a button only if certain conditions are met. Passing a callback as the third parameter allows implementing custom logic.
|
|
|
|
|
|
|
+Another use case is processing the bound property value, for instance, when a button should be disabled only if certain conditions are met. Passing a callback as the third parameter allows implementing a custom logic.
|
|
|
|
|
|
|
|
-In the example below, a button's `isEnabled` property will be set to `true` only when `command.value` will be set to `'heading1`.
|
|
|
|
|
|
|
+In the example below, the `isEnabled` property will be set `true` only when `command.value` equals `'heading1`.
|
|
|
|
|
|
|
|
```js
|
|
```js
|
|
|
const command = editor.commands.get( 'heading' );
|
|
const command = editor.commands.get( 'heading' );
|