         if self.options.clicked
           self.options.clicked()
 
+  $: (selector) ->
+    $(selector, @dropdown)
+
   toggleLoading: ->
     $('.dropdown-menu', @dropdown).toggleClass LOADING_CLASS
 

    # Init filiterable
    if @options.filterable
      @filter = new GitLabDropdownFilter @dropdown,
        remote: @options.filterRemote
        query: @options.data
        keys: @options.search.fields

  PAGE_TWO_CLASS = "is-page-two"
  ACTIVE_CLASS = "is-active"

  FILTER_INPUT = '.dropdown-input .dropdown-input-field'

  constructor: (@el, @options) ->
    @dropdown = $(@el).parent()

    # Set Defaults
    {
      # If no input is passed create a default one
      @filterInput = @$(FILTER_INPUT)
    } = @options

    self = @

    # If selector was passed
    if _.isString(@filterInput)
      @filterInput = @$(@filterInput)


    search_fields = if @options.search then @options.search.fields else [];

    if @options.data
      # If data is an array
      if _.isArray @options.data
        @fullData = @options.data
        @parseData @options.data
      else
        # Remote data
