lib/tty/prompt/multi_list.rb
def render_header
        instructions = @prompt.decorate(help, :bright_black)
        max_suffix = @max ? max_help : ""

        if @done && @echo
          @prompt.decorate(selected_names, @active_color)
        elsif @selected.size.nonzero? && @echo
          help_suffix = filterable? && @filter.any? ? " #{filter_help}" : ""
          max_suffix + selected_names +
            (@first_render ? " #{instructions}" : help_suffix)
        elsif @first_render
          max_suffix + instructions
        elsif filterable? && @filter.any?
          max_suffix + filter_help
        elsif @max
          max_help
        end
      end
# Render initial help text and then currently selected choices
#
# @api private
Render initial help text and then currently selected choices
Render initial help text and then currently selected choices
def render_header
        instructions = @prompt.decorate(help, :bright_black)
        max_suffix = @max ? max_help : ""
        if @done && @echo
          @prompt.decorate(selected_names, @active_color)
        elsif @selected.size.nonzero? && @echo
          help_suffix = filterable? && @filter.any? ? " #{filter_help}" : ""
          max_suffix + selected_names +
            (@first_render ? " #{instructions}" : help_suffix)
        elsif @first_render
          max_suffix + instructions
        elsif filterable? && @filter.any?
          max_suffix + filter_help
        elsif @max
          max_help
        end
      end
def render_header instructions = @prompt . decorate ( help , :bright_black ) max_suffix = @max ? max_help : "" if @done && @echo @prompt . decorate ( selected_names , @active_color ) elsif @selected . size . nonzero? && @echo help_suffix = filterable? && @filter . any? ? " #{filter_help}" : "" max_suffix + selected_names + ( @first_render ? " #{instructions}" : help_suffix ) elsif @first_render max_suffix + instructions elsif filterable? && @filter . any? max_suffix + filter_help elsif @max max_help end end
Render initial help text and then currently selected choices
Render initial help text and then currently selected choices
api
None