Issue #3358Opened March 22, 2021by qweiop8010 reactions

Set Model property.

Question

How can I disable model drag button on this event:

editor.on('component:deselected', (model) => { 
  if (model...) {
    model.set(...)
 }
}

Answers (1)

artfMarch 22, 20210 reactions

If for model drag button you mean the button on the toolbar, you should update the toolbar property, eg:

model.set('toolbar', [{
  attributes: { class: 'fa fa-trash-o' },
  command: 'tlb-delete'
}])

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.