Skip to main content

TextEditorButtonWidgetFactory.Button() Method

Provides methods that allows you to configure a custom editor button.

Namespace: DevExtreme.AspNet.Mvc.Factories

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public ButtonBuilder Button()

Returns

Type Description
ButtonBuilder

An instance of ButtonBuilder.

Remarks

@(Html.DevExtreme().TextBox()
    .Buttons(buttons => {
        buttons.Add()
            .Location(TextEditorButtonLocation.After)
            .Widget(w => w.Button()
                // call methods in a chain to customize the button
            );
    })
)
See Also