class Playbook::PbDropdown::DropdownTrigger

def classname

def classname
  generate_classname("pb_dropdown_trigger")
end

def data

def data
  Hash(prop(:data)).merge(dropdown_trigger: true, dropdown_placeholder: default_display_placeholder)
end

def default_display_placeholder

def default_display_placeholder
  placeholder || "Select..."
end

def trigger_wrapper_classes

def trigger_wrapper_classes
  generate_classname("dropdown_trigger_wrapper", "select_only")
end