Task<IUIContextObject> ShowCardAsync(
ICardModel model,
string statusText = null,
Func<ICardEditorModel, CancellationToken, ValueTask<bool>> prepareEditorActionAsync = null,
ShowCardOptions options = null,
CancellationToken cancellationToken = default
)
Function ShowCardAsync (
model As ICardModel,
Optional statusText As String = Nothing,
Optional prepareEditorActionAsync As Func(Of ICardEditorModel, CancellationToken, ValueTask(Of Boolean)) = Nothing,
Optional options As ShowCardOptions = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IUIContextObject)
Task<IUIContextObject^>^ ShowCardAsync(
ICardModel^ model,
String^ statusText = nullptr,
Func<ICardEditorModel^, CancellationToken, ValueTask<bool>>^ prepareEditorActionAsync = nullptr,
ShowCardOptions^ options = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
abstract ShowCardAsync :
model : ICardModel *
?statusText : string *
?prepareEditorActionAsync : Func<ICardEditorModel, CancellationToken, ValueTask<bool>> *
?options : ShowCardOptions *
?cancellationToken : CancellationToken
(* Defaults:
let _statusText = defaultArg statusText null
let _prepareEditorActionAsync = defaultArg prepareEditorActionAsync null
let _options = defaultArg options null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<IUIContextObject>
С помощью возврата значения false можно отменить создание UI.
Рекомендуется использовать этот метод, чтобы установить свойство редактора [Tessa.UI.Cards.ICardEditorModel.WorkspaceName].