Class: Ruflet::UI::Controls::RufletComponents::PopupMenuItemControl
- Inherits:
-
Control
- Object
- Control
- Ruflet::UI::Controls::RufletComponents::PopupMenuItemControl
- Defined in:
- lib/ruflet_ui/ruflet/ui/controls/materials/popupmenuitem_control.rb
Constant Summary collapse
- TYPE =
"popupmenuitem".freeze
- WIRE =
"PopupMenuItem".freeze
Constants inherited from Control
Instance Attribute Summary
Attributes inherited from Control
#children, #id, #props, #runtime_page, #type, #wire_id
Instance Method Summary collapse
-
#initialize(id: nil, badge: nil, checked: nil, col: nil, content: nil, data: nil, disabled: nil, expand: nil, expand_loose: nil, height: nil, icon: nil, key: nil, label_text_style: nil, mouse_cursor: nil, opacity: nil, padding: nil, rtl: nil, tooltip: nil, visible: nil, on_click: nil) ⇒ PopupMenuItemControl
constructor
A new instance of PopupMenuItemControl.
Methods inherited from Control
#emit, generate_id, #has_handler?, #on, #to_patch
Constructor Details
#initialize(id: nil, badge: nil, checked: nil, col: nil, content: nil, data: nil, disabled: nil, expand: nil, expand_loose: nil, height: nil, icon: nil, key: nil, label_text_style: nil, mouse_cursor: nil, opacity: nil, padding: nil, rtl: nil, tooltip: nil, visible: nil, on_click: nil) ⇒ PopupMenuItemControl
Returns a new instance of PopupMenuItemControl.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/ruflet_ui/ruflet/ui/controls/materials/popupmenuitem_control.rb', line 11 def initialize(id: nil, badge: nil, checked: nil, col: nil, content: nil, data: nil, disabled: nil, expand: nil, expand_loose: nil, height: nil, icon: nil, key: nil, label_text_style: nil, mouse_cursor: nil, opacity: nil, padding: nil, rtl: nil, tooltip: nil, visible: nil, on_click: nil) props = {} props[:badge] = badge unless badge.nil? props[:checked] = checked unless checked.nil? props[:col] = col unless col.nil? props[:content] = content unless content.nil? props[:data] = data unless data.nil? props[:disabled] = disabled unless disabled.nil? props[:expand] = unless .nil? props[:expand_loose] = unless .nil? props[:height] = height unless height.nil? props[:icon] = icon unless icon.nil? props[:key] = key unless key.nil? props[:label_text_style] = label_text_style unless label_text_style.nil? props[:mouse_cursor] = mouse_cursor unless mouse_cursor.nil? props[:opacity] = opacity unless opacity.nil? props[:padding] = padding unless padding.nil? props[:rtl] = rtl unless rtl.nil? props[:tooltip] = tooltip unless tooltip.nil? props[:visible] = visible unless visible.nil? props[:on_click] = on_click unless on_click.nil? super(type: TYPE, id: id, **props) end |