class Playbook::PbFixedConfirmationToast::FixedConfirmationToast
def auto_close_class
def auto_close_class auto_close.present? ? " auto_close_#{auto_close}" : "" end
def classname
def classname generate_classname("pb_fixed_confirmation_toast_kit", status, multi_line_class) + close_class + position_class + auto_close_class + icon_class end
def close_class
def close_class closeable.present? ? " remove_toast" : "" end
def icon_class
def icon_class icon.present? ? " custom_icon" : "" end
def icon_value
def icon_value icon || case status when "success" "check" when "error" "exclamation-triangle" when "neutral" "info-circle" when "tip" "info-circle" end end
def multi_line_class
def multi_line_class multi_line.present? ? "multi_line" : nil end
def position_class
def position_class horizontal && vertical ? " positioned_toast #{vertical} #{horizontal}" : "" end
def show_text?
def show_text? text.present? end