     else
       @div({className: "active section"}, "#{@props.elem.name}")
 
+# Sub-option of finder, represents list of files/folders for the path accessed
 class FinderLs extends Reactable
   select: (elem) ->
     !elem.isdir and elem.realpath == @props.jar

    elems = (FinderLsElem.new(key: "#{elem.realpath}", elem: elem, selected: @select(elem)) for elem in @props.ls)
    @div({className: "menu"}, elems)

class FinderLsElem extends Reactable
  handleClick: (event, elem) ->
    event.preventDefault()

# `JobContainer` class that resembles Spark job to create, with all options
class JobContainer extends Reactable
  constructor: ->
    # State includes: name, (main) klass, driver memory, executor memory, delay, jar
    # Also features finder state (ls array, path array and current url accessed)
    @state =
      name: "#{Namer.generate()}"
      klass: "com.test.Main"
