readonly
Description
Optional. Enables/disables editing, adding, selecting, dragging the cards
Usage
readonly?: boolean;
//or
readonly?: {
edit?: boolean,
add?: boolean,
select?: boolean,
dnd?: boolean
};
Parameters
To configure the readonly mode, you can use the short or extended parameters.
The short parameter:
readonly
- (optional) enables/disables readonly mode of Kanban
The extended parameters:
readonly
- (optional) an object with extended settings. Here you can specify the following parameters:edit
- (optional) enables/disables editing of the cardsadd
- (optional) enables/disables adding of the new cardsselect
- (optional) enables/disables selecting of the cardsdnd
- (optional) enables/disables dragging of the cards
Default config
readonly: false // readonly mode is disabled
//or
readonly: {
edit: true, // editing is enabled
add: true, // adding is enabled
select: true, // selecting is enabled
dnd: true // dragging is enabled
}
Example
new kanban.Kanban("#root", {
cards,
columns,
readonly: {
edit: false, // disable editing
add: true, // enable adding
select: false, // disable selecting
dnd: true // enable dragging
},
// other parameters
});
Related sample: Readonly mode