CodeBlockLanguagesCombo(eventManager)

Class CodeBlockLanguagesCombo

new CodeBlockLanguagesCombo(eventManager)

Creates an instance of CodeBlockLanguagesCombo.

Parameters:
Name Type Description
eventManager EventManager

event manager instance

Methods

getElement() → {HTMLElement}

get element body

Returns:
HTMLElement -
  • CodeBlockLanguagesCombo body element

setLanguage(language)

set language

Parameters:
Name Type Description
language string

code block language

setOnLanguageSelected(callback)

set a callback to be called on language selected

Parameters:
Name Type Description
callback function

callback function