ColumnCombo

A combo populated with the columns of a TaskBoard.

If a column has a color defined, that color will be displayed in the combo and its picker.

If your app uses a "catch-all" column (a column with its id set to *), it can be excluded from the combo by setting the excludeCatchAll config to true. By using the includeAllColumnValues, you can make the combo include all column values from the tasks, even those that are not defined in the TaskBoard.

Used in TaskEditor to pick which column a task belongs to ("Status" below):

Column combo
//<code-header>
fiddle.title = 'Column combo';
//</code-header>
const taskBoard = new TaskBoard({
    appendTo : targetElement,

    features : {
        columnToolbars : false,
        taskEdit       : {
            editorConfig : {
                modal       : false,
                centered    : false,
                constrainTo : targetElement
            },

            items : {
                description : null,
                resources   : null,
                color       : null
            }
        }
    },

    // Swimlanes to display
    swimlanes : [
        { id : 'high', text : 'High', color : 'red' },
        { id : 'medium', text : 'Medium', color : 'yellow' },
        { id : 'low', text : 'Low', color : 'green' }
    ],

    // Field used to pair a task to a swimlane
    swimlaneField : 'prio',

    // Columns to display
    columns : [
        { id : 'todo', text : 'Todo', color : 'orange' },
        { id : 'doing', text : 'Doing', color : 'blue' },
        { id : 'done', text : 'Done', color : 'green' }
    ],

    // Field used to pair a task to a column
    columnField : 'status',

    // Project using inline data
    project : {
        tasks : [
            { id : 1, name : 'Task 1', status : 'doing', prio : 'low' },
            { id : 2, name : 'Task 2', status : 'done', prio : 'medium' },
            { id : 3, name : 'Task 3', status : 'done', prio : 'high' },
            { id : 4, name : 'Task 4', status : 'todo', prio : 'low' },
            { id : 5, name : 'Task 5', status : 'todo', prio : 'medium' }
        ]
    },

    listeners : {
        initialCompose() {
            taskBoard.editTask(taskBoard.project.taskStore.first);
        }
    }
});

Configs

148

Common

editablePickerField
listenersEvents
taskBoardTaskBoardLinked

Other

By default, the combo will show a configured "catch-all" column (a column with its id set to *). In some cases, e.g. when used in a task editor, you may want to exclude that column from the combo.

Only applies when using a "catch-all" column (a column with its id set to *). By default, the combo will include only the columns defined in the TaskBoard. With this config you can opt to include all column values from the tasks, even those that are not defined in the TaskBoard.

columnWidget
itemsCombo
listClsCombo
nameField
pickerCombo
renditionTextField
rtlRTL
spanWidget
storeCombo
valueCombo

Accessibility

ariaLabelWidget
keyMapKeyMap

Container

inlineField

CSS

clsWidget
colorWidget
htmlClsWidget
styleWidget
uiWidget

DOM

adoptWidget
appendToWidget
contentWidget
datasetWidget
htmlWidget
idWidget
tagWidget
titleWidget

Field

maxLengthTextField
minLengthTextField

Float & align

alignWidget
anchorWidget
centeredWidget
draggableWidget
floatingWidget
xWidget
yWidget

Input element

Label

hintField
labelLabelable
labelClsLabelable
labelPositionLabelable
labelsField
labelWidthLabelable

Layout

alignSelfWidget
dockWidget
flexWidget
heightWidget
hiddenWidget
marginWidget
maxHeightWidget
maxWidthWidget
minHeightWidget
minWidthWidget
textAlignWidget
weightWidget
widthWidget

Misc

badgeBadge
dataFieldWidget
disabledWidget
localeClassLocalizable
localizableLocalizable
maskedWidget
ownerWidget
refWidget
rippleWidget
tabWidget
tooltipWidget

Picker

autoExpandPickerField

Scrolling

Properties

101

Class hierarchy

isColumnCombo: Boolean= truereadonly
Identifies an object as an instance of ColumnCombo class, or subclass thereof.
isColumnCombo: Boolean= truereadonlystatic
Identifies an object as an instance of ColumnCombo class, or subclass thereof.
isBadgeBadge
isColorBoxComboColorBoxCombo
isComboCombo
isDelayableDelayable
isEventsEvents
isFieldField
isFormulaFieldFormulaField
isKeyMapKeyMap
isLabelableLabelable
isLocalizableLocalizable
isPickerFieldPickerField
isTaskBoardLinkedTaskBoardLinked
isTextFieldTextField
isValidatableValidatable
isWidgetWidget

Other

By default, the combo will show a configured "catch-all" column (a column with its id set to *). In some cases, e.g. when used in a task editor, you may want to exclude that column from the combo.

Only applies when using a "catch-all" column (a column with its id set to *). By default, the combo will include only the columns defined in the TaskBoard. With this config you can opt to include all column values from the tasks, even those that are not defined in the TaskBoard.

store: Storereadonly

The store used by the combo to populate its items, automatically chained of the TaskBoard columns store.

$namestaticWidget
columnWidget
formulaFormulaField
inputField
isEmptyCombo
isValidField
pickerCombo
queryLaststaticCombo
recordCombo
recordsCombo
renditionTextField
rtlRTL
spanWidget
typestaticWidget
valueCombo

Accessibility

keyMapKeyMap

CSS

clsWidget

DOM

appendToWidget
contentWidget
datasetWidget
elementWidget
htmlWidget
idWidget
styleWidget

Float & align

xWidget
yWidget

Layout

alignSelfWidget
flexWidget
heightWidget
marginWidget
maxHeightWidget
maxWidthWidget
minHeightWidget
minWidthWidget
widthWidget

Lifecycle

configBase

Misc

badgeBadge
cellInfoWidget
disabledWidget
errorTipValidatable
labelLabelable
localeHelperLocalizable
localeManagerLocalizable
refWidget
tabWidget
tooltipWidget

Visibility

hiddenWidget
isVisibleWidget

Widget hierarchy

ownerWidget
parentWidget

Functions

67

Configuration

applyDefaultsstaticBase

Events

Float & align

alignToWidget
setXYWidget
showByWidget
toFrontWidget

Lifecycle

createstaticWidget
destroystaticBase
initClassstaticWidget

Misc

attachTooltipstaticWidget
fromElementstaticWidget
fromSelectorstaticWidget
getByIdstaticWidget
isOfTypeNamestaticBase
mixinstaticBase
optionalLstaticLocalizable

Other

clearField
clearErrorValidatable
composeWidget
createOnFrameDelayable
disableWidget
enableWidget
focusWidget
getErrorsValidatable
LstaticLocalizable
maskWidget
onEvents
recomposeWidget
relayAllEvents
selectField
setErrorValidatable
triggerEvents
unEvents
unmaskWidget

Picker

hidePickerPickerField
showPickerPickerField
togglePickerPickerField

Visibility

hideWidget
showWidget

Widget hierarchy

closestWidget
containsWidget
eachWidgetPickerField
ownsWidget
queryWidget
queryAllWidget
upWidget

Events

20
actionCombo
catchAllEvents
changeField
clearField
destroyEvents
focusInWidget
focusOutWidget
hideWidget
inputCombo
paintWidget
readOnlyWidget
recomposeWidget
resizeWidget
selectCombo
showWidget
triggerField

Event handlers

20

Typedefs

7

CSS variables

132