Classes block #3581
Answered
by
ronaldohoch
ronaldohoch
asked this question in
Q&A
Classes block
#3581
-
Beta Was this translation helpful? Give feedback.
Answered by
ronaldohoch
Jul 5, 2021
Replies: 1 comment
-
Responding to item number 2: Panels.addPanel({
id: 'new-devices-panel',
visible: true,
buttons: [
{
id: 'device-desktop',
active: true,
togglable:true,
className: 'btn-toggle-borders ',
label: '<i class="fa fa-desktop"></i>',
command:{
run: editor => editor.setDevice('Desktop'),
stop(editor){}
}
},
{
id: 'device-tablet',
active: false,
togglable:true,
className: 'btn-toggle-borders',
label: '<i class="fa fa-tablet"></i>',
command:{
run: editor => editor.setDevice('Tablet'),
stop(editor){}
}
},
{
id: 'device-mobile-landscape',
active: false,
togglable:true,
className: 'btn-toggle-borders ',
label: '<i class="fa fa-mobile" style="transform: rotate(-90deg)"></i>',
command:{
run: editor => editor.setDevice('Mobile landscape'),
stop(editor){}
}
},
{
id: 'device-portrait',
active: false,
togglable:true,
className: 'btn-toggle-borders ',
label: '<i class="fa fa-mobile"></i>',
command:{
run: editor => editor.setDevice('Mobile portrait'),
stop(editor){}
}
},
],
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ronaldohoch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Responding to item number 2:
When i configure the commands with
run
andstop
, it works properly!