Is there any way possible to add a tag like feature in drop down menu.
I have maintained an array of tags for each column in my angular app.
I just want to add such a functionality that a user can either check or uncheck that tag.
Here is my code
this.table_settings= {
maxRows: this.MaxRows,
height: this.tableHeight,
width: this.tableWidth,
columns: this.spData.Headers,
dropdownMenu:{
callback: function (this, key, options){
},
items: [
'undo','redo','alignment',
{
key:'col_left',
name: 'Insert Column to the Left',
callback: (key, option) => {
this.addColumnDialog();
}
},
{
key:'rename_column',
name: 'Rename Column',
callback: (key, option) => {
this.addRenameDialog(option[0].end.col);
}
},{
key:'tag_1',
name: '<input type="checkbox">Tag Column',
callback: (key, option) => {
this.addTag(key, option[0].end.col);
}
}
]
}
}
}