Skip to content

Commit b2acd6d

Browse files
committed
Fixed vale warnings/errors
1 parent e9660ff commit b2acd6d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

15/umbraco-ui-builder/collections/editors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ fieldConfig.MakeReadOnly(distanceProp => $"{distanceProp:## 'km'}");
346346

347347
### Using the `MakeReadOnly(object dataTypeNameOrId)` Method
348348

349-
This method makes the current field read-only, preventing user edits in the UI. Additionally, it allows specifying a data type name or ID to determine how the field should be rendered when in read-only mode.
349+
This method makes the current field read-only, preventing user edits in the UI. Additionally, it allows specifying a Data Type name or ID to determine how the field should be rendered when in read-only mode.
350350

351351
#### Method Syntax
352352

@@ -394,7 +394,7 @@ fieldConfig.MakeReadOnly(ctx => ctx.EditorMode == EditorMode.Create, distancePro
394394

395395
### Using the `MakeReadOnly(Predicate<>, Func<>)` Method
396396

397-
This method makes the current field read-only in the UI if the provided runtime predicate evaluates to true, preventing user edits. It also allows specifying a data type name or ID to use when the field is in read-only mode.
397+
This method makes the current field read-only in the UI if the provided runtime predicate evaluates to true, preventing user edits. It also allows specifying a Data Type name or ID to use when the field is in read-only mode.
398398

399399
#### Method Syntax
400400

15/umbraco-ui-builder/collections/the-basics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,11 @@ collectionConfig.SetDateModifiedProperty(p => p.DateModified);
214214

215215
## Configuring Soft Deletes
216216

217-
By default, entities deleted via the Umbraco UI Builder repository are permanently removed from the system. The `SetDeletedProperty` method can be used to retain records in the data repository, marking them as deleted without removing them, ensuring they do not appear in the UI.
217+
By default, entities deleted via the Umbraco UI Builder repository are permanently removed from the system. The `SetDeletedProperty` method marks records as deleted without removing them. This retains them in the data repository while hiding them from the UI.
218218

219219
### Using the `SetDeletedProperty()` Method
220220

221-
Defines the property of the entity to use as the deleted flag. The property must be of type `boolean` or `int`. When set, delete actions will mark the entity as deleted by setting the flag instead of removing the entity.
221+
Defines the property of the entity to use as the deleted flag. The property must be of type `boolean` or `int`. When set, delete actions will mark the entity as deleted by setting the flag instead of removing the entity.
222222

223223
For `boolean` properties, the flag is set to `True` when deleted. For `int` properties, the flag is set to a UTC Unix timestamp representing the deletion date. Additionally, fetch actions will automatically exclude deleted entities.
224224

0 commit comments

Comments
 (0)