blank package
This commit is contained in:
commit
ffbe36efec
12 changed files with 210 additions and 0 deletions
22
lib/ex-mode-view.coffee
Normal file
22
lib/ex-mode-view.coffee
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
module.exports =
|
||||
class ExModeView
|
||||
constructor: (serializeState) ->
|
||||
# Create root element
|
||||
@element = document.createElement('div')
|
||||
@element.classList.add('ex-mode')
|
||||
|
||||
# Create message element
|
||||
message = document.createElement('div')
|
||||
message.textContent = "The ExMode package is Alive! It's ALIVE!"
|
||||
message.classList.add('message')
|
||||
@element.appendChild(message)
|
||||
|
||||
# Returns an object that can be retrieved when package is activated
|
||||
serialize: ->
|
||||
|
||||
# Tear down any state and detach
|
||||
destroy: ->
|
||||
@element.remove()
|
||||
|
||||
getElement: ->
|
||||
@element
|
||||
Loading…
Add table
Add a link
Reference in a new issue