Skip to main content

GanttToolbarItemBuilder.ShowText(ToolbarItemShowTextMode) Method

Specifies when to display the text for the UI component item. Mirrors the client-side showText option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public GanttToolbarItemBuilder ShowText(
    ToolbarItemShowTextMode value
)

Parameters

Name Type Description
value ToolbarItemShowTextMode

One of the enumeration values.

Returns

Type Description
GanttToolbarItemBuilder

A reference to this instance after the method is called.

Remarks

@(Html.DevExtreme().Gantt()
    .Toolbar(toolbar => toolbar
        .Items(items => {
            items.Add().MenuItemTemplate(ToolbarItemShowTextMode.Always)
        })
    )
)
See Also