Skip to main content
All docs
V23.2

HtmlEditorImageUploadBuilder.Tabs(Action<CollectionFactory<HtmlEditorImageUploadTabItemBuilder>>) Method

Contains an array of tabs in the 'Add an Image' dialog. Mirrors the client-side tabs option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public HtmlEditorImageUploadBuilder Tabs(
    Action<CollectionFactory<HtmlEditorImageUploadTabItemBuilder>> configurator
)

Parameters

Name Type Description
configurator Action<CollectionFactory<HtmlEditorImageUploadTabItemBuilder>>

A function that allows you to specify nested options.

Returns

Type Description
HtmlEditorImageUploadBuilder

A reference to this instance after the method is called.

Remarks

This method provides access to methods that allow you to configure nested options of the client-side tabs object.

To specify nested options, use a lambda expression.

@(Html.DevExtreme().HtmlEditor()
    .ImageUpload(iupload => iupload 
        .Tabs(tabs => {
            tabs.Add(); // call methods to configure a tab
            tabs.Add();
        })
    )
)

Refer to Nested Options and Collections for more information.

See Also