TextItem

Item that displays the value of the configured field in a XSS safe way.

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

    features : {
        columnToolbars : false
    },

    bodyItems : {
        prio : { type : 'text' }
    },

    columns : [
        'todo',
        'doing',
        'done'
    ],

    columnField : 'status',

    project : {
        tasks : [
            {
                id     : 1,
                name   : 'Go surfing',
                status : 'doing',
                prio   : 'Low'
            },
            {
                id     : 2,
                name   : 'Go skiing',
                status : 'done',
                prio   : 'Medium'
            },
            {
                id     : 3,
                name   : 'Go camping',
                status : 'todo',
                prio   : 'High'
            }
        ]
    }
});

Configs

6
clsTaskItem
editorTaskItem
fieldTaskItem
hiddenTaskItem
orderTaskItem
styleTaskItem

Properties

2
isTextItem: Boolean= truereadonly
Identifies an object as an instance of TextItem class, or subclass thereof.
isTextItem: Boolean= truereadonlystatic
Identifies an object as an instance of TextItem class, or subclass thereof.

Typedefs

1