Defines the fluent API for configuring the Kendo UI TaskBoard
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TCard
TColumn
Syntax:
public class TaskBoardBuilder<TCard, TColumn> : WidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>, IHtmlContent where TCard : class where TColumn : class
Inheritance: objectHelperResultWidgetBuilderBase<TaskBoard<TCard, TColumn>, TaskBoardBuilder<TCard, TColumn>>TaskBoardBuilder<TCard, TColumn>
Implements:
Inherited Members
Constructors
Initializes a new instance of the TaskBoardBuilder<TCard, TColumn> class.
public TaskBoardBuilder(TaskBoard<TCard, TColumn> component)
Methods
Controls whether to bind the TaskBoard to the data source on initialization.
public TaskBoardBuilder<TCard, TColumn> AutoBind(bool value)
The value for AutoBind
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current TaskBoardBuilder<TCard, TColumn> instance.
Binds the TaskBoard Cards to a list of objects
public TaskBoardBuilder<TCard, TColumn> BindTo(IEnumerable dataSource)
The data source.
Returns:TaskBoardBuilder<TCard, TColumn>
The current instance of the TaskBoardBuilder<TCard, TColumn>.
Binds the TaskBoard Cards to a list of objects
public TaskBoardBuilder<TCard, TColumn> BindTo(IEnumerable<TCard> dataSource)
The data source.
Returns:TaskBoardBuilder<TCard, TColumn>
The current instance of the TaskBoardBuilder<TCard, TColumn>.
Defines the list of buttons rendered in the card.
public TaskBoardBuilder<TCard, TColumn> CardMenu(Action<TaskBoardCardMenuFactory<TCard, TColumn>> configurator)
The TaskBoardCardMenuFactory<TCard, TColumn> for the cardmenu setting.
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current instance of TaskBoardBuilder<TCard, TColumn> .
Sets the data source configuration of the TaskBoard's Columns.
public TaskBoardBuilder<TCard, TColumn> Columns(Action<DataSourceBuilder<TColumn>> configurator)
The lambda which configures the data source
Returns:TaskBoardBuilder<TCard, TColumn>
The current instance of the TaskBoardBuilder<TCard, TColumn>.
Uses predifined Model to configure the columns.
public TaskBoardBuilder<TCard, TColumn> Columns(Action<TaskBoardColumnsBuilder> configurator)
The lambda which configures the columns
Returns:TaskBoardBuilder<TCard, TColumn>
The current instance of the TaskBoardBuilder<TCard, TColumn>.
Binds the TaskBoard Columns to a list of objects
public TaskBoardBuilder<TCard, TColumn> Columns(IEnumerable dataSource)
The data source.
Returns:TaskBoardBuilder<TCard, TColumn>
The current instance of the TaskBoardBuilder<TCard, TColumn>.
Binds the TaskBoard Columns to a list of objects
public TaskBoardBuilder<TCard, TColumn> Columns(IEnumerable<TColumn> dataSource)
The data source.
Returns:TaskBoardBuilder<TCard, TColumn>
The current instance of the TaskBoardBuilder<TCard, TColumn>.
Defines the settings for the columns.
public TaskBoardBuilder<TCard, TColumn> ColumnSettings(Action<TaskBoardColumnSettingsSettingsBuilder<TCard, TColumn>> configurator)
The TaskBoardColumnSettingsSettingsBuilder<TCard, TColumn> for the columnsettings setting.
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current instance of TaskBoardBuilder<TCard, TColumn> .
Sets the ID of the DataSource widget used by the TaskBoard Columns.
public TaskBoardBuilder<TCard, TColumn> ColumnsId(string dataSourceId)
The name of the DataSource
Returns:TaskBoardBuilder<TCard, TColumn>
The current instance of the TaskBoardBuilder<TCard, TColumn>.
The category field of the card.
public TaskBoardBuilder<TCard, TColumn> DataCategoryField(string value)
The value for DataCategoryField
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current TaskBoardBuilder<TCard, TColumn> instance.
The description field of the card.
public TaskBoardBuilder<TCard, TColumn> DataDescriptionField(string value)
The value for DataDescriptionField
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current TaskBoardBuilder<TCard, TColumn> instance.
The field used to order cards (number based). If not set, cards will be rendered in the order they are fetched. And ordering will not be applied to the DataSource and respectively, not synced with the remote data source.
public TaskBoardBuilder<TCard, TColumn> DataOrderField(string value)
The value for DataOrderField
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current TaskBoardBuilder<TCard, TColumn> instance.
Sets the data source configuration of the TaskBoard.
public TaskBoardBuilder<TCard, TColumn> DataSource(Action<DataSourceBuilder<TCard>> configurator)
The lambda which configures the data source
Returns:TaskBoardBuilder<TCard, TColumn>
The current instance of the TaskBoardBuilder<TCard, TColumn>.
Sets the ID of the DataSource widget used by the TaskBoard.
public TaskBoardBuilder<TCard, TColumn> DataSource(string dataSourceId)
The name of the DataSource
Returns:TaskBoardBuilder<TCard, TColumn>
The current instance of the TaskBoardBuilder<TCard, TColumn>.
The field of the data item that provides the status of the card. Mapped with the status of the columns.
public TaskBoardBuilder<TCard, TColumn> DataStatusField(string value)
The value for DataStatusField
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current TaskBoardBuilder<TCard, TColumn> instance.
The title field of the card.
public TaskBoardBuilder<TCard, TColumn> DataTitleField(string value)
The value for DataTitleField
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current TaskBoardBuilder<TCard, TColumn> instance.
Toggles the editing in the TaskBoard. Both for columns and cards.
public TaskBoardBuilder<TCard, TColumn> Editable(Action<TaskBoardEditableSettingsBuilder<TCard, TColumn>> configurator)
The TaskBoardEditableSettingsBuilder<TCard, TColumn> for the editable setting.
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current instance of TaskBoardBuilder<TCard, TColumn> .
Toggles the editing in the TaskBoard. Both for columns and cards.
public TaskBoardBuilder<TCard, TColumn> Editable(bool enabled)
Enables or disables the editable option.
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current instance of TaskBoardEditableSettingsBuilder<TCard, TColumn> .
Configures the client-side events.
public TaskBoardBuilder<TCard, TColumn> Events(Action<TaskBoardEventBuilder> configurator)
The client events action.
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current TaskBoardBuilder<TCard, TColumn> instance.
Configures the height of the TaskBoard wrapper.
public TaskBoardBuilder<TCard, TColumn> Height(string value)
The value for Height
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current TaskBoardBuilder<TCard, TColumn> instance.
Provides configuration options for the messages present in the TaskBoard widget.
public TaskBoardBuilder<TCard, TColumn> Messages(Action<TaskBoardMessagesSettingsBuilder<TCard, TColumn>> configurator)
The TaskBoardMessagesSettingsBuilder<TCard, TColumn> for the messages setting.
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current instance of TaskBoardBuilder<TCard, TColumn> .
Toggles the previewPane in the TaskBoard.
public TaskBoardBuilder<TCard, TColumn> PreviewPane(Action<TaskBoardPreviewPaneSettingsBuilder<TCard, TColumn>> configurator)
The TaskBoardPreviewPaneSettingsBuilder<TCard, TColumn> for the previewpane setting.
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current instance of TaskBoardBuilder<TCard, TColumn> .
Toggles the previewPane in the TaskBoard.
public TaskBoardBuilder<TCard, TColumn> PreviewPane(bool enabled)
Enables or disables the previewpane option.
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current instance of TaskBoardPreviewPaneSettingsBuilder<TCard, TColumn> .
Toggles the reordering of cards in the TaskBoard.
public TaskBoardBuilder<TCard, TColumn> Reorderable(bool value)
The value for Reorderable
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current TaskBoardBuilder<TCard, TColumn> instance.
The configuration of the TaskBoard resource(s). A TaskBoard resource is optional metadata that can be associated with a TaskBoard event.
public TaskBoardBuilder<TCard, TColumn> Resources(Action<TaskBoardResourceFactory<TCard, TColumn>> configurator)
The TaskBoardResourceFactory<TCard, TColumn> for the resources setting.
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current instance of TaskBoardBuilder<TCard, TColumn> .
Toggles the selection of the TaskBoard.
public TaskBoardBuilder<TCard, TColumn> Selectable(bool value)
The value for Selectable
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current TaskBoardBuilder<TCard, TColumn> instance.
Controls the rendering of the card.
public TaskBoardBuilder<TCard, TColumn> Template(string value)
The value for Template
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current TaskBoardBuilder<TCard, TColumn> instance.
Controls the rendering of the card.
public TaskBoardBuilder<TCard, TColumn> Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current TaskBoardBuilder<TCard, TColumn> instance.
Controls the rendering of the card.
public TaskBoardBuilder<TCard, TColumn> TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current TaskBoardBuilder<TCard, TColumn> instance.
Controls the rendering of the card.
public TaskBoardBuilder<TCard, TColumn> TemplateId(string templateId)
The ID of the template element for Template
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current TaskBoardBuilder<TCard, TColumn> instance.
Controls the rendering of the card.
public TaskBoardBuilder<TCard, TColumn> TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current TaskBoardBuilder<TCard, TColumn> instance.
Configures the Tools of the TaskBoard
public TaskBoardBuilder<TCard, TColumn> Toolbar(Action<TaskBoardToolbarSettingsBuilder<TCard, TColumn>> configurator)
The configurator for the toolbar setting.
Returns:TaskBoardBuilder<TCard, TColumn>
The current instance of the TaskBoardBuilder<TCard, TColumn>.
Configures the Tools of the TaskBoard
public TaskBoardBuilder<TCard, TColumn> Toolbar(bool enabled)
Enables or disables the toolbar option.
Returns:TaskBoardBuilder<TCard, TColumn>
The current instance of the TaskBoardBuilder<TCard, TColumn>.
Configures the width of the TaskBoard wrapper.
public TaskBoardBuilder<TCard, TColumn> Width(string value)
The value for Width
Returns:TaskBoardBuilder<TCard, TColumn>
Returns the current TaskBoardBuilder<TCard, TColumn> instance.