setting the icon of a button in an atto plugin I've created

setting the icon of a button in an atto plugin I've created

by Patrick Scott -
Number of replies: 0

Hi

I've created a subplugin (button) for atto editor.
I'm at the stage of choosing the icon for the button.

this.addButton({
   icon: 'insert_edit_link',
   callback: this._displayDialogue,
   tags: 'a',
   tagMatchRequiresAll: false
});

I also want to use a font awesome icon for my button, I want to use "alarm-clock":
https://fontawesome.com/icons/alarm-clock?style=light

I tried:

this.addButton({
   icon: 'fa-alarm-clock',
   callback: this._displayDialogue,
   tags: 'a',
   tagMatchRequiresAll: false
});

that didn't work.
how to I make my button use the 'alarm-clock' font awesome icon?

I'm reading here: 
https://docs.moodle.org/dev/Atto#Atto_subplugin_Php_API

and there are dead links there to:
http://apidocs.moodle.org/js/master/classes/M.editor_atto.EditorPlugin.html#method_addButton

so I don't know where else to find information about this.

I have my own theme.... is there somewhere in the theme I should configure this?

thanks

I have moodle 3.5.1 installed by the way.

Average of ratings: -