Sha256: 669f916d1d91b730c25af1a374ab332826cc2ccc74f7afe50faf9a62f883d11d
Contents?: true
Size: 760 Bytes
Versions: 99
Compression:
Stored size: 760 Bytes
Contents
# frozen_string_literal: true # :nodoc: class ActionMenuForm < ApplicationForm form do |action_menu_form| action_menu_form.action_menu(name: "city", label: "Favorite city", caption: "Select your favorite!") do |city_list| city_list.with_item(label: "Lopez Island", data: { value: "lopez_island" }) do |item| item.with_leading_visual_icon(icon: :log) end city_list.with_item(label: "Bellevue", data: { value: "bellevue" }) do |item| item.with_leading_visual_icon(icon: :paste) end city_list.with_item(label: "Seattle", data: { value: "seattle" }) do |item| item.with_leading_visual_icon(icon: :"device-camera") end end action_menu_form.submit(name: :submit, label: "Submit") end end
Version data entries
99 entries across 99 versions & 2 rubygems