BlRichTextBoxViewModelBaseInitItems - метод
Инициализирует списки элементов контейнера.
Пространство имён: Tessa.UI.Controls.CustomRichTextBoxCtrlСборка: Tessa.UI (в Tessa.UI.dll) Версия: 3.6.0.22
public virtual void InitItems(
ListStorage<ItemModel> itemModels,
Func<ItemModel, CancellationToken, ValueTask> previewFileAsyncFunc = null,
Func<Guid, CancellationToken, Task<(List<string> filePaths, IValidationResultBuilder validationResult)>> getFileContentAction = null,
Func<ItemModel, CancellationToken, Task> removeAction = null
)
Public Overridable Sub InitItems (
itemModels As ListStorage(Of ItemModel),
Optional previewFileAsyncFunc As Func(Of ItemModel, CancellationToken, ValueTask) = Nothing,
Optional getFileContentAction As Func(Of Guid, CancellationToken, Task(Of (filePaths As List(Of String), validationResult As IValidationResultBuilder))) = Nothing,
Optional removeAction As Func(Of ItemModel, CancellationToken, Task) = Nothing
)
public:
virtual void InitItems(
ListStorage<ItemModel^>^ itemModels,
Func<ItemModel^, CancellationToken, ValueTask>^ previewFileAsyncFunc = nullptr,
Func<Guid, CancellationToken, Task<ValueTuple<List<String^>^, IValidationResultBuilder^>>^>^ getFileContentAction = nullptr,
Func<ItemModel^, CancellationToken, Task^>^ removeAction = nullptr
)
abstract InitItems :
itemModels : ListStorage<ItemModel> *
?previewFileAsyncFunc : Func<ItemModel, CancellationToken, ValueTask> *
?getFileContentAction : Func<Guid, CancellationToken, Task<ValueTuple<List<string>, IValidationResultBuilder>>> *
?removeAction : Func<ItemModel, CancellationToken, Task>
(* Defaults:
let _previewFileAsyncFunc = defaultArg previewFileAsyncFunc null
let _getFileContentAction = defaultArg getFileContentAction null
let _removeAction = defaultArg removeAction null
*)
-> unit
override InitItems :
itemModels : ListStorage<ItemModel> *
?previewFileAsyncFunc : Func<ItemModel, CancellationToken, ValueTask> *
?getFileContentAction : Func<Guid, CancellationToken, Task<ValueTuple<List<string>, IValidationResultBuilder>>> *
?removeAction : Func<ItemModel, CancellationToken, Task>
(* Defaults:
let _previewFileAsyncFunc = defaultArg previewFileAsyncFunc null
let _getFileContentAction = defaultArg getFileContentAction null
let _removeAction = defaultArg removeAction null
*)
-> unit
Параметры
- itemModels ListStorageItemModel
- Список вложений.
- previewFileAsyncFunc FuncItemModel, CancellationToken, ValueTask (Optional)
- Функция, используемая для отображения превью файла.
- getFileContentAction FuncGuid, CancellationToken, TaskValueTupleListString, IValidationResultBuilder (Optional)
- Действие, которое выполняется при получения содержимого файла из карточки.
- removeAction FuncItemModel, CancellationToken, Task (Optional)
- Действие, которое выполняется при удалении файла.