Module: Ruflet::UI::MaterialControlMethods
- Included in:
- ControlMethods
- Defined in:
- lib/ruflet_ui/ruflet/ui/material_control_methods.rb
Constant Summary collapse
- SPINKIT_VARIANTS =
[:rotating_circle, :rotating_plain, :double_bounce, :wave, :wandering_cubes, :fading_four, :fading_cube, :pulse, :chasing_dots, :three_bounce, :circle, :cube_grid, :fading_circle, :folding_cube, :pumping_heart, :hour_glass, :pouring_hour_glass, :pouring_hour_glass_refined, :fading_grid, :ring, :ripple, :dual_ring, :spinning_circle, :spinning_lines, :square_circle, :three_in_out, :dancing_square, :piano_wave, :pulsing_grid, :wave_spinner].freeze
Instance Method Summary collapse
- #alert_dialog(**props) ⇒ Object
- #alertdialog(**props) ⇒ Object
- #animated_switcher(content = nil, **props) ⇒ Object
- #animatedswitcher(content = nil, **props) ⇒ Object
- #animation(duration = nil, **props) ⇒ Object
- #animation_style(**props) ⇒ Object
- #app_bar(**props) ⇒ Object
- #appbar(**props) ⇒ Object
- #arc(**props) ⇒ Object
- #audio(**props) ⇒ Object
- #auto_complete(suggestions = nil, **props) ⇒ Object
- #auto_complete_suggestion(key = nil, **props) ⇒ Object
- #autocomplete(suggestions = nil, **props) ⇒ Object
- #autocomplete_suggestion(key = nil, **props) ⇒ Object
- #autocompletesuggestion(key = nil, **props) ⇒ Object
- #autofill_group(content = nil, **props) ⇒ Object
- #autofillgroup(content = nil, **props) ⇒ Object
- #badge(label = nil, **props) ⇒ Object
- #banner(content = nil, **props) ⇒ Object
- #bar_chart(**props) ⇒ Object
- #bar_chart_group(**props) ⇒ Object
- #bar_chart_rod(**props) ⇒ Object
- #bar_chart_rod_stack_item(**props) ⇒ Object
- #barchart(**props) ⇒ Object
- #barchartgroup(**props) ⇒ Object
- #barchartrod(**props) ⇒ Object
- #barchartrodstackitem(**props) ⇒ Object
- #bottom_app_bar(content = nil, **props) ⇒ Object
- #bottom_sheet(content = nil, **props) ⇒ Object
- #bottomappbar(content = nil, **props) ⇒ Object
- #bottomsheet(content = nil, **props) ⇒ Object
- #button(content = nil, **props) ⇒ Object
- #candlestick_chart(**props) ⇒ Object
- #candlestick_chart_spot(**props) ⇒ Object
- #candlestickchart(**props) ⇒ Object
- #candlestickchartspot(**props) ⇒ Object
- #canvas(shapes = nil, **props) ⇒ Object
- #canvas_color(**props) ⇒ Object
- #card(content = nil, **props) ⇒ Object
- #center(**props, &block) ⇒ Object
- #chart_axis(**props) ⇒ Object
- #chart_axis_label(**props) ⇒ Object
- #chartaxis(**props) ⇒ Object
- #chartaxislabel(**props) ⇒ Object
- #checkbox(**props) ⇒ Object
- #chip(label = nil, **props) ⇒ Object
- #circle(**props) ⇒ Object
- #circle_avatar(content = nil, **props) ⇒ Object
- #circle_layer(circles = nil, **props) ⇒ Object
- #circle_marker(**props) ⇒ Object
- #circleavatar(content = nil, **props) ⇒ Object
- #circlelayer(circles = nil, **props) ⇒ Object
- #circlemarker(**props) ⇒ Object
- #clipboard(**props) ⇒ Object
- #code_editor(value = nil, **props) ⇒ Object
- #codeeditor(value = nil, **props) ⇒ Object
- #color(**props) ⇒ Object
- #column(children = nil, **props, &block) ⇒ Object
- #container(**props, &block) ⇒ Object
- #context_menu(content = nil, **props) ⇒ Object
- #contextmenu(content = nil, **props) ⇒ Object
- #data_cell(content = nil, **props) ⇒ Object
- #data_column(label = nil, **props) ⇒ Object
- #data_row(cells = nil, **props) ⇒ Object
- #data_table(columns = nil, **props) ⇒ Object
- #datacell(content = nil, **props) ⇒ Object
- #datacolumn(label = nil, **props) ⇒ Object
- #datarow(cells = nil, **props) ⇒ Object
- #datatable(columns = nil, **props) ⇒ Object
- #date_picker(**props) ⇒ Object
- #date_range_picker(**props) ⇒ Object
- #datepicker(**props) ⇒ Object
- #daterangepicker(**props) ⇒ Object
- #dismissible(content = nil, **props) ⇒ Object
- #divider(**props) ⇒ Object
- #drag_target(content = nil, **props, &block) ⇒ Object
- #draggable(content = nil, **props, &block) ⇒ Object
- #dragtarget(content = nil, **props, &block) ⇒ Object
- #dropdown(options = nil, **props) ⇒ Object
- #dropdown_m2(options = nil, **props) ⇒ Object
- #dropdown_option(key = nil, **props) ⇒ Object
- #dropdownm2(options = nil, **props) ⇒ Object
- #dropdownoption(key = nil, **props) ⇒ Object
-
#elevated_button(content = nil, **props) ⇒ Object
Ruflet currently uses a single Material button control schema.
- #expansion_panel(**props) ⇒ Object
- #expansion_panel_list(children = nil, **props) ⇒ Object
- #expansion_tile(children = nil, **props) ⇒ Object
- #expansionpanel(**props) ⇒ Object
- #expansionpanellist(children = nil, **props) ⇒ Object
- #expansiontile(children = nil, **props) ⇒ Object
- #fab(content = nil, **props) ⇒ Object
- #fill(**props) ⇒ Object
- #filled_button(content = nil, **props) ⇒ Object
- #filled_icon_button(icon = nil, **props) ⇒ Object
- #filled_tonal_button(content = nil, **props) ⇒ Object
- #filled_tonal_icon_button(icon = nil, **props) ⇒ Object
- #filledbutton(content = nil, **props) ⇒ Object
- #fillediconbutton(icon = nil, **props) ⇒ Object
- #filledtonalbutton(content = nil, **props) ⇒ Object
- #filledtonaliconbutton(icon = nil, **props) ⇒ Object
- #floating_action_button(**props) ⇒ Object
- #floatingactionbutton(**props) ⇒ Object
- #gesture_detector(**props, &block) ⇒ Object
- #gesturedetector(**props, &block) ⇒ Object
- #grid_view(children = nil, **props, &block) ⇒ Object
- #gridview(children = nil, **props, &block) ⇒ Object
- #hero(content = nil, **props) ⇒ Object
- #icon(icon = nil, **props) ⇒ Object
- #icon_button(icon = nil, **props) ⇒ Object
- #iconbutton(icon = nil, **props) ⇒ Object
- #image(src = nil, src_base64: nil, placeholder_src: nil, **props) ⇒ Object
- #interactive_viewer(content = nil, **props) ⇒ Object
- #interactiveviewer(content = nil, **props) ⇒ Object
- #keyboard_listener(content = nil, **props) ⇒ Object
- #keyboardlistener(content = nil, **props) ⇒ Object
- #line(**props) ⇒ Object
- #line_chart(**props) ⇒ Object
- #line_chart_data(**props) ⇒ Object
- #line_chart_data_point(**props) ⇒ Object
- #linechart(**props) ⇒ Object
- #linechartdata(**props) ⇒ Object
- #linechartdatapoint(**props) ⇒ Object
- #list_tile(**props) ⇒ Object
- #list_view(children = nil, **props) ⇒ Object
- #listtile(**props) ⇒ Object
- #listview(children = nil, **props) ⇒ Object
- #map(layers = nil, **props) ⇒ Object
- #map_coordinate_list(value) ⇒ Object
- #map_coordinates(value) ⇒ Object
- #markdown(value = nil, **props) ⇒ Object
- #marker(content = nil, **props) ⇒ Object
- #marker_layer(markers = nil, **props) ⇒ Object
- #markerlayer(markers = nil, **props) ⇒ Object
- #menu_bar(children = nil, **props) ⇒ Object
- #menu_item_button(content = nil, **props) ⇒ Object
- #menubar(children = nil, **props) ⇒ Object
- #menuitembutton(content = nil, **props) ⇒ Object
- #merge_semantics(content = nil, **props) ⇒ Object
- #mergesemantics(content = nil, **props) ⇒ Object
- #navigation_bar(**props, &block) ⇒ Object
- #navigation_bar_destination(**props, &block) ⇒ Object
- #navigation_drawer(children = nil, **props) ⇒ Object
- #navigation_drawer_destination(**props) ⇒ Object
- #navigation_rail(**props, &block) ⇒ Object
- #navigation_rail_destination(**props, &block) ⇒ Object
- #navigationbar(**props, &block) ⇒ Object
- #navigationbardestination(**props, &block) ⇒ Object
- #navigationdrawer(children = nil, **props) ⇒ Object
- #navigationdrawerdestination(**props) ⇒ Object
- #navigationrail(**props, &block) ⇒ Object
- #navigationraildestination(**props, &block) ⇒ Object
- #outlined_button(content = nil, **props) ⇒ Object
- #outlined_icon_button(icon = nil, **props) ⇒ Object
- #outlinedbutton(content = nil, **props) ⇒ Object
- #outlinediconbutton(icon = nil, **props) ⇒ Object
- #oval(**props) ⇒ Object
- #overlay(children = nil, **props) ⇒ Object
- #page_view(children = nil, **props) ⇒ Object
- #pageview(children = nil, **props) ⇒ Object
- #paint(**props) ⇒ Object
- #path(**props) ⇒ Object
- #path_arc(**props) ⇒ Object
- #path_arc_to(**props) ⇒ Object
- #path_close(**props) ⇒ Object
- #path_cubic_to(**props) ⇒ Object
- #path_line_to(x = nil, y = nil, **props) ⇒ Object
- #path_move_to(x = nil, y = nil, **props) ⇒ Object
- #path_oval(**props) ⇒ Object
- #path_quadratic_to(**props) ⇒ Object
- #path_rect(**props) ⇒ Object
- #path_sub_path(**props) ⇒ Object
- #pie_chart(**props) ⇒ Object
- #pie_chart_section(**props) ⇒ Object
- #piechart(**props) ⇒ Object
- #piechartsection(**props) ⇒ Object
- #placeholder(content = nil, **props) ⇒ Object
- #points(**props) ⇒ Object
- #polygon_layer(polygons = nil, **props) ⇒ Object
- #polygon_marker(**props) ⇒ Object
- #polygonlayer(polygons = nil, **props) ⇒ Object
- #polygonmarker(**props) ⇒ Object
- #polyline_layer(polylines = nil, **props) ⇒ Object
- #polyline_marker(**props) ⇒ Object
- #polylinelayer(polylines = nil, **props) ⇒ Object
- #polylinemarker(**props) ⇒ Object
- #popup_menu_button(items = nil, **props) ⇒ Object
- #popup_menu_item(content = nil, **props) ⇒ Object
- #popupmenubutton(items = nil, **props) ⇒ Object
- #popupmenuitem(content = nil, **props) ⇒ Object
- #progress_bar(**props) ⇒ Object
- #progress_ring(**props) ⇒ Object
- #progressbar(**props) ⇒ Object
- #progressring(**props) ⇒ Object
- #radar_chart(**props) ⇒ Object
- #radar_chart_title(**props) ⇒ Object
- #radar_data_set(**props) ⇒ Object
- #radar_data_set_entry(**props) ⇒ Object
- #radarchart(**props) ⇒ Object
- #radarcharttitle(**props) ⇒ Object
- #radardataset(**props) ⇒ Object
- #radardatasetentry(**props) ⇒ Object
- #radio(**props) ⇒ Object
- #radio_group(content = nil, **props) ⇒ Object
- #radiogroup(content = nil, **props) ⇒ Object
- #range_slider(**props) ⇒ Object
- #rangeslider(**props) ⇒ Object
- #rect(**props) ⇒ Object
- #reorderable_drag_handle(content = nil, **props) ⇒ Object
- #reorderable_list_view(children = nil, **props) ⇒ Object
- #reorderabledraghandle(content = nil, **props) ⇒ Object
- #reorderablelistview(children = nil, **props) ⇒ Object
- #responsive_row(children = nil, **props, &block) ⇒ Object
- #responsiverow(children = nil, **props, &block) ⇒ Object
- #rive(src = nil, **props) ⇒ Object
- #rotated_box(content = nil, **props) ⇒ Object
- #rotatedbox(content = nil, **props) ⇒ Object
- #row(children = nil, **props, &block) ⇒ Object
- #safe_area(content = nil, **props) ⇒ Object
- #safearea(content = nil, **props) ⇒ Object
- #scatter_chart(**props) ⇒ Object
- #scatter_chart_spot(**props) ⇒ Object
- #scatterchart(**props) ⇒ Object
- #scatterchartspot(**props) ⇒ Object
- #screenshot(content = nil, **props) ⇒ Object
- #search_bar(children = nil, **props) ⇒ Object
- #searchbar(children = nil, **props) ⇒ Object
- #segment(value = nil, **props) ⇒ Object
- #segmented_button(segments = nil, **props) ⇒ Object
- #segmentedbutton(segments = nil, **props) ⇒ Object
- #selection_area(content = nil, **props) ⇒ Object
- #selectionarea(content = nil, **props) ⇒ Object
- #semantics(content = nil, **props) ⇒ Object
- #shader_mask(content = nil, **props) ⇒ Object
- #shadermask(content = nil, **props) ⇒ Object
- #shadow(**props) ⇒ Object
- #shimmer(content = nil, **props) ⇒ Object
- #simple_attribution(**props) ⇒ Object
- #simpleattribution(**props) ⇒ Object
- #slider(**props) ⇒ Object
- #snack_bar(content = nil, **props) ⇒ Object
- #snack_bar_action(label = nil, **props) ⇒ Object
- #snackbar(content = nil, **props) ⇒ Object
- #snackbaraction(label = nil, **props) ⇒ Object
- #spinkit(**variants) ⇒ Object
- #stack(children = nil, **props, &block) ⇒ Object
- #submenu_button(children = nil, **props) ⇒ Object
- #submenubutton(children = nil, **props) ⇒ Object
- #switch(**props) ⇒ Object
- #tab(label = nil, **props, &block) ⇒ Object
- #tab_bar(tabs = nil, **props, &block) ⇒ Object
- #tab_bar_view(children = nil, **props, &block) ⇒ Object
- #tabbar(tabs = nil, **props, &block) ⇒ Object
- #tabbarview(children = nil, **props, &block) ⇒ Object
- #tabs(content = nil, **props, &block) ⇒ Object
- #text(value = nil, **props) ⇒ Object
- #text_button(content = nil, **props) ⇒ Object
- #text_field(value = nil, **props) ⇒ Object
- #text_span(text = nil, **props) ⇒ Object
- #textbutton(content = nil, **props) ⇒ Object
- #textfield(**props) ⇒ Object
- #textspan(text = nil, **props) ⇒ Object
- #tile_layer(**props) ⇒ Object
- #tilelayer(**props) ⇒ Object
- #time_picker(**props) ⇒ Object
- #timepicker(**props) ⇒ Object
- #transparent_pointer(content = nil, **props) ⇒ Object
- #transparentpointer(content = nil, **props) ⇒ Object
- #url_launcher(**props) ⇒ Object
- #vertical_divider(**props) ⇒ Object
- #verticaldivider(**props) ⇒ Object
- #video(**props) ⇒ Object
- #view(children = nil, **props, &block) ⇒ Object
- #web_view(**props) ⇒ Object
- #webview(**props) ⇒ Object
- #window_drag_area(content = nil, **props) ⇒ Object
- #windowdragarea(content = nil, **props) ⇒ Object
Instance Method Details
#alert_dialog(**props) ⇒ Object
571 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 571 def alert_dialog(**props) = (:alertdialog, **props) |
#alertdialog(**props) ⇒ Object
572 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 572 def alertdialog(**props) = alert_dialog(**props) |
#animated_switcher(content = nil, **props) ⇒ Object
69 70 71 72 73 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 69 def animated_switcher(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:animatedswitcher, **mapped) end |
#animatedswitcher(content = nil, **props) ⇒ Object
74 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 74 def animatedswitcher(content = nil, **props) = animated_switcher(content, **props) |
#animation(duration = nil, **props) ⇒ Object
75 76 77 78 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 75 def animation(duration = nil, **props) duration = props.delete(:duration) if duration.nil? && props.key?(:duration) Ruflet::Animation.new(duration: duration, **props) end |
#animation_style(**props) ⇒ Object
79 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 79 def animation_style(**props) = Ruflet::AnimationStyle.new(**props) |
#app_bar(**props) ⇒ Object
612 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 612 def (**props) = (:appbar, **props) |
#appbar(**props) ⇒ Object
613 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 613 def (**props) = (**props) |
#arc(**props) ⇒ Object
148 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 148 def arc(**props) = (:arc, **props) |
#audio(**props) ⇒ Object
80 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 80 def audio(**props) = (:audio, **props) |
#auto_complete(suggestions = nil, **props) ⇒ Object
81 82 83 84 85 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 81 def auto_complete(suggestions = nil, **props) mapped = props.dup mapped[:suggestions] = suggestions unless suggestions.nil? (:autocomplete, **mapped) end |
#auto_complete_suggestion(key = nil, **props) ⇒ Object
87 88 89 90 91 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 87 def auto_complete_suggestion(key = nil, **props) mapped = props.dup mapped[:key] = key unless key.nil? (:autocompletesuggestion, **mapped) end |
#autocomplete(suggestions = nil, **props) ⇒ Object
86 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 86 def autocomplete(suggestions = nil, **props) = auto_complete(suggestions, **props) |
#autocomplete_suggestion(key = nil, **props) ⇒ Object
92 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 92 def autocomplete_suggestion(key = nil, **props) = auto_complete_suggestion(key, **props) |
#autocompletesuggestion(key = nil, **props) ⇒ Object
93 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 93 def autocompletesuggestion(key = nil, **props) = auto_complete_suggestion(key, **props) |
#autofill_group(content = nil, **props) ⇒ Object
100 101 102 103 104 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 100 def autofill_group(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:autofillgroup, **mapped) end |
#autofillgroup(content = nil, **props) ⇒ Object
105 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 105 def autofillgroup(content = nil, **props) = autofill_group(content, **props) |
#badge(label = nil, **props) ⇒ Object
429 430 431 432 433 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 429 def badge(label = nil, **props) mapped = props.dup mapped[:label] = label unless label.nil? (:badge, **mapped) end |
#banner(content = nil, **props) ⇒ Object
445 446 447 448 449 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 445 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:banner, **mapped) end |
#bar_chart(**props) ⇒ Object
658 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 658 def (**props) = (:barchart, **props) |
#bar_chart_group(**props) ⇒ Object
660 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 660 def (**props) = (:barchartgroup, **props) |
#bar_chart_rod(**props) ⇒ Object
662 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 662 def (**props) = (:barchartrod, **props) |
#bar_chart_rod_stack_item(**props) ⇒ Object
664 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 664 def (**props) = (:barchartrodstackitem, **props) |
#barchart(**props) ⇒ Object
659 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 659 def (**props) = (**props) |
#barchartgroup(**props) ⇒ Object
661 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 661 def (**props) = (**props) |
#barchartrod(**props) ⇒ Object
663 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 663 def (**props) = (**props) |
#barchartrodstackitem(**props) ⇒ Object
665 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 665 def (**props) = (**props) |
#bottom_app_bar(content = nil, **props) ⇒ Object
450 451 452 453 454 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 450 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:bottomappbar, **mapped) end |
#bottom_sheet(content = nil, **props) ⇒ Object
585 586 587 588 589 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 585 def bottom_sheet(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:bottomsheet, **mapped) end |
#bottomappbar(content = nil, **props) ⇒ Object
455 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 455 def (content = nil, **props) = (content, **props) |
#bottomsheet(content = nil, **props) ⇒ Object
590 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 590 def bottomsheet(content = nil, **props) = bottom_sheet(content, **props) |
#button(content = nil, **props) ⇒ Object
463 464 465 466 467 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 463 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:button, **mapped) end |
#candlestick_chart(**props) ⇒ Object
676 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 676 def candlestick_chart(**props) = (:candlestickchart, **props) |
#candlestick_chart_spot(**props) ⇒ Object
678 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 678 def candlestick_chart_spot(**props) = (:candlestickchartspot, **props) |
#candlestickchart(**props) ⇒ Object
677 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 677 def candlestickchart(**props) = candlestick_chart(**props) |
#candlestickchartspot(**props) ⇒ Object
679 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 679 def candlestickchartspot(**props) = candlestick_chart_spot(**props) |
#canvas(shapes = nil, **props) ⇒ Object
141 142 143 144 145 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 141 def canvas(shapes = nil, **props) mapped = props.dup mapped[:shapes] = shapes unless shapes.nil? (:canvas, **mapped) end |
#canvas_color(**props) ⇒ Object
150 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 150 def canvas_color(**props) = color(**props) |
#card(content = nil, **props) ⇒ Object
184 185 186 187 188 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 184 def card(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:card, **mapped) end |
#center(**props, &block) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 33 def center(**props, &block) mapped = props.dup defaults = { expand: true, alignment: { x: 0, y: 0 } } if block nested = WidgetBuilder.new block_result = nested.instance_eval(&block) child = if nested.children.any? nested.children.first elsif block_result.is_a?(Ruflet::Control) block_result end mapped[:content] = child if child end (:container, **normalize_container_props(defaults.merge(mapped))) end |
#chart_axis(**props) ⇒ Object
692 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 692 def chart_axis(**props) = (:chartaxis, **props) |
#chart_axis_label(**props) ⇒ Object
694 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 694 def chart_axis_label(**props) = (:chartaxislabel, **props) |
#chartaxis(**props) ⇒ Object
693 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 693 def chartaxis(**props) = chart_axis(**props) |
#chartaxislabel(**props) ⇒ Object
695 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 695 def chartaxislabel(**props) = chart_axis_label(**props) |
#checkbox(**props) ⇒ Object
544 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 544 def checkbox(**props) = (:checkbox, **props) |
#chip(label = nil, **props) ⇒ Object
434 435 436 437 438 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 434 def chip(label = nil, **props) mapped = props.dup mapped[:label] = label unless label.nil? (:chip, **mapped) end |
#circle(**props) ⇒ Object
147 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 147 def circle(**props) = (:circle, **props) |
#circle_avatar(content = nil, **props) ⇒ Object
439 440 441 442 443 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 439 def circle_avatar(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:circleavatar, **mapped) end |
#circle_layer(circles = nil, **props) ⇒ Object
211 212 213 214 215 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 211 def circle_layer(circles = nil, **props) mapped = props.dup mapped[:circles] = circles unless circles.nil? (:circlelayer, **mapped) end |
#circle_marker(**props) ⇒ Object
217 218 219 220 221 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 217 def circle_marker(**props) mapped = props.dup mapped[:coordinates] = map_coordinates(mapped[:coordinates]) if mapped.key?(:coordinates) (:circlemarker, **mapped) end |
#circleavatar(content = nil, **props) ⇒ Object
444 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 444 def circleavatar(content = nil, **props) = circle_avatar(content, **props) |
#circlelayer(circles = nil, **props) ⇒ Object
216 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 216 def circlelayer(circles = nil, **props) = circle_layer(circles, **props) |
#circlemarker(**props) ⇒ Object
222 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 222 def circlemarker(**props) = circle_marker(**props) |
#clipboard(**props) ⇒ Object
615 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 615 def clipboard(**props) = (:clipboard, **props) |
#code_editor(value = nil, **props) ⇒ Object
699 700 701 702 703 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 699 def code_editor(value = nil, **props) mapped = props.dup mapped[:value] = value unless value.nil? (:codeeditor, **mapped) end |
#codeeditor(value = nil, **props) ⇒ Object
704 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 704 def codeeditor(value = nil, **props) = code_editor(value, **props) |
#color(**props) ⇒ Object
149 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 149 def color(**props) = (:color, **props) |
#column(children = nil, **props, &block) ⇒ Object
27 28 29 30 31 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 27 def column(children = nil, **props, &block) mapped = props.dup mapped[:children] = children unless children.nil? (:column, **mapped, &block) end |
#container(**props, &block) ⇒ Object
68 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 68 def container(**props, &block) = (:container, **normalize_container_props(props), &block) |
#context_menu(content = nil, **props) ⇒ Object
94 95 96 97 98 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 94 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:contextmenu, **mapped) end |
#contextmenu(content = nil, **props) ⇒ Object
99 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 99 def (content = nil, **props) = (content, **props) |
#data_cell(content = nil, **props) ⇒ Object
310 311 312 313 314 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 310 def data_cell(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:datacell, **mapped) end |
#data_column(label = nil, **props) ⇒ Object
298 299 300 301 302 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 298 def data_column(label = nil, **props) mapped = props.dup mapped[:label] = label unless label.nil? (:datacolumn, **mapped) end |
#data_row(cells = nil, **props) ⇒ Object
304 305 306 307 308 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 304 def data_row(cells = nil, **props) mapped = props.dup mapped[:cells] = cells unless cells.nil? (:datarow, **mapped) end |
#data_table(columns = nil, **props) ⇒ Object
292 293 294 295 296 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 292 def data_table(columns = nil, **props) mapped = props.dup mapped[:columns] = columns unless columns.nil? (:datatable, **mapped) end |
#datacell(content = nil, **props) ⇒ Object
315 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 315 def datacell(content = nil, **props) = data_cell(content, **props) |
#datacolumn(label = nil, **props) ⇒ Object
303 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 303 def datacolumn(label = nil, **props) = data_column(label, **props) |
#datarow(cells = nil, **props) ⇒ Object
309 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 309 def datarow(cells = nil, **props) = data_row(cells, **props) |
#datatable(columns = nil, **props) ⇒ Object
297 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 297 def datatable(columns = nil, **props) = data_table(columns, **props) |
#date_picker(**props) ⇒ Object
288 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 288 def date_picker(**props) = (:datepicker, **props) |
#date_range_picker(**props) ⇒ Object
290 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 290 def date_range_picker(**props) = (:daterangepicker, **props) |
#datepicker(**props) ⇒ Object
289 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 289 def datepicker(**props) = date_picker(**props) |
#daterangepicker(**props) ⇒ Object
291 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 291 def daterangepicker(**props) = date_range_picker(**props) |
#dismissible(content = nil, **props) ⇒ Object
173 174 175 176 177 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 173 def dismissible(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:dismissible, **mapped) end |
#divider(**props) ⇒ Object
279 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 279 def divider(**props) = (:divider, **props) |
#drag_target(content = nil, **props, &block) ⇒ Object
178 179 180 181 182 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 178 def drag_target(content = nil, **props, &block) mapped = props.dup mapped[:content] = content unless content.nil? (:dragtarget, **mapped, &block) end |
#draggable(content = nil, **props, &block) ⇒ Object
168 169 170 171 172 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 168 def draggable(content = nil, **props, &block) mapped = props.dup mapped[:content] = content unless content.nil? (:draggable, **mapped, &block) end |
#dragtarget(content = nil, **props, &block) ⇒ Object
183 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 183 def dragtarget(content = nil, **props, &block) = drag_target(content, **props, &block) |
#dropdown(options = nil, **props) ⇒ Object
330 331 332 333 334 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 330 def dropdown( = nil, **props) mapped = props.dup mapped[:options] = unless .nil? (:dropdown, **mapped) end |
#dropdown_m2(options = nil, **props) ⇒ Object
341 342 343 344 345 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 341 def dropdown_m2( = nil, **props) mapped = props.dup mapped[:options] = unless .nil? (:dropdownm2, **mapped) end |
#dropdown_option(key = nil, **props) ⇒ Object
335 336 337 338 339 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 335 def dropdown_option(key = nil, **props) mapped = props.dup mapped[:key] = key unless key.nil? (:dropdownoption, **mapped) end |
#dropdownm2(options = nil, **props) ⇒ Object
346 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 346 def dropdownm2( = nil, **props) = dropdown_m2(, **props) |
#dropdownoption(key = nil, **props) ⇒ Object
340 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 340 def dropdownoption(key = nil, **props) = dropdown_option(key, **props) |
#elevated_button(content = nil, **props) ⇒ Object
Ruflet currently uses a single Material button control schema. Keep elevated_button DSL available by routing to :button.
470 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 470 def (content = nil, **props) = (content, **props) |
#expansion_panel(**props) ⇒ Object
322 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 322 def expansion_panel(**props) = (:expansionpanel, **props) |
#expansion_panel_list(children = nil, **props) ⇒ Object
324 325 326 327 328 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 324 def expansion_panel_list(children = nil, **props) mapped = props.dup mapped[:children] = children unless children.nil? (:expansionpanellist, **mapped) end |
#expansion_tile(children = nil, **props) ⇒ Object
316 317 318 319 320 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 316 def expansion_tile(children = nil, **props) mapped = props.dup mapped[:children] = children unless children.nil? (:expansiontile, **mapped) end |
#expansionpanel(**props) ⇒ Object
323 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 323 def expansionpanel(**props) = expansion_panel(**props) |
#expansionpanellist(children = nil, **props) ⇒ Object
329 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 329 def expansionpanellist(children = nil, **props) = expansion_panel_list(children, **props) |
#expansiontile(children = nil, **props) ⇒ Object
321 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 321 def expansiontile(children = nil, **props) = expansion_tile(children, **props) |
#fab(content = nil, **props) ⇒ Object
711 712 713 714 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 711 def fab(content = nil, **props) mapped = normalize_fab_props(props.dup, content) (:floatingactionbutton, **mapped) end |
#fill(**props) ⇒ Object
151 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 151 def fill(**props) = (:fill, **props) |
#filled_button(content = nil, **props) ⇒ Object
477 478 479 480 481 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 477 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:filledbutton, **mapped) end |
#filled_icon_button(icon = nil, **props) ⇒ Object
483 484 485 486 487 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 483 def (icon = nil, **props) mapped = props.dup mapped[:icon] = icon unless icon.nil? (:fillediconbutton, **mapped) end |
#filled_tonal_button(content = nil, **props) ⇒ Object
489 490 491 492 493 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 489 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:filledtonalbutton, **mapped) end |
#filled_tonal_icon_button(icon = nil, **props) ⇒ Object
495 496 497 498 499 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 495 def (icon = nil, **props) mapped = props.dup mapped[:icon] = icon unless icon.nil? (:filledtonaliconbutton, **mapped) end |
#filledbutton(content = nil, **props) ⇒ Object
482 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 482 def (content = nil, **props) = (content, **props) |
#fillediconbutton(icon = nil, **props) ⇒ Object
488 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 488 def (icon = nil, **props) = (icon, **props) |
#filledtonalbutton(content = nil, **props) ⇒ Object
494 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 494 def (content = nil, **props) = (content, **props) |
#filledtonaliconbutton(icon = nil, **props) ⇒ Object
500 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 500 def (icon = nil, **props) = (icon, **props) |
#floating_action_button(**props) ⇒ Object
616 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 616 def (**props) = (:floatingactionbutton, **props) |
#floatingactionbutton(**props) ⇒ Object
617 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 617 def (**props) = (**props) |
#gesture_detector(**props, &block) ⇒ Object
139 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 139 def gesture_detector(**props, &block) = (:gesturedetector, **props, &block) |
#gesturedetector(**props, &block) ⇒ Object
140 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 140 def gesturedetector(**props, &block) = gesture_detector(**props, &block) |
#grid_view(children = nil, **props, &block) ⇒ Object
62 63 64 65 66 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 62 def grid_view(children = nil, **props, &block) mapped = props.dup mapped[:children] = children unless children.nil? (:gridview, **mapped, &block) end |
#gridview(children = nil, **props, &block) ⇒ Object
67 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 67 def gridview(children = nil, **props, &block) = grid_view(children, **props, &block) |
#hero(content = nil, **props) ⇒ Object
106 107 108 109 110 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 106 def hero(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:hero, **mapped) end |
#icon(icon = nil, **props) ⇒ Object
598 599 600 601 602 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 598 def icon(icon = nil, **props) mapped = props.dup mapped[:icon] = icon unless icon.nil? (:icon, **mapped) end |
#icon_button(icon = nil, **props) ⇒ Object
514 515 516 517 518 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 514 def (icon = nil, **props) mapped = props.dup mapped[:icon] = icon unless icon.nil? (:iconbutton, **mapped) end |
#iconbutton(icon = nil, **props) ⇒ Object
519 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 519 def (icon = nil, **props) = (icon, **props) |
#image(src = nil, src_base64: nil, placeholder_src: nil, **props) ⇒ Object
604 605 606 607 608 609 610 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 604 def image(src = nil, src_base64: nil, placeholder_src: nil, **props) mapped = props.dup mapped[:src] = normalize_image_source(src) unless src.nil? mapped[:src_base64] = normalize_image_source(src_base64) unless src_base64.nil? mapped[:placeholder_src] = normalize_image_source(placeholder_src) unless placeholder_src.nil? (:image, **mapped) end |
#interactive_viewer(content = nil, **props) ⇒ Object
520 521 522 523 524 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 520 def interactive_viewer(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:interactiveviewer, **mapped) end |
#interactiveviewer(content = nil, **props) ⇒ Object
525 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 525 def interactiveviewer(content = nil, **props) = interactive_viewer(content, **props) |
#keyboard_listener(content = nil, **props) ⇒ Object
133 134 135 136 137 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 133 def keyboard_listener(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:keyboardlistener, **mapped) end |
#keyboardlistener(content = nil, **props) ⇒ Object
138 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 138 def keyboardlistener(content = nil, **props) = keyboard_listener(content, **props) |
#line(**props) ⇒ Object
146 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 146 def line(**props) = (:line, **props) |
#line_chart(**props) ⇒ Object
666 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 666 def line_chart(**props) = (:linechart, **props) |
#line_chart_data(**props) ⇒ Object
668 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 668 def line_chart_data(**props) = (:linechartdata, **props) |
#line_chart_data_point(**props) ⇒ Object
670 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 670 def line_chart_data_point(**props) = (:linechartdatapoint, **props) |
#linechart(**props) ⇒ Object
667 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 667 def linechart(**props) = line_chart(**props) |
#linechartdata(**props) ⇒ Object
669 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 669 def linechartdata(**props) = line_chart_data(**props) |
#linechartdatapoint(**props) ⇒ Object
671 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 671 def linechartdatapoint(**props) = line_chart_data_point(**props) |
#list_tile(**props) ⇒ Object
189 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 189 def list_tile(**props) = (:listtile, **props) |
#list_view(children = nil, **props) ⇒ Object
249 250 251 252 253 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 249 def list_view(children = nil, **props) mapped = props.dup mapped[:children] = children unless children.nil? (:listview, **mapped) end |
#listtile(**props) ⇒ Object
190 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 190 def listtile(**props) = list_tile(**props) |
#listview(children = nil, **props) ⇒ Object
254 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 254 def listview(children = nil, **props) = list_view(children, **props) |
#map(layers = nil, **props) ⇒ Object
191 192 193 194 195 196 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 191 def map(layers = nil, **props) mapped = props.dup mapped[:initial_center] = map_coordinates(mapped[:initial_center]) if mapped.key?(:initial_center) mapped[:layers] = layers unless layers.nil? (:map, **mapped) end |
#map_coordinate_list(value) ⇒ Object
18 19 20 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 18 def map_coordinate_list(value) Array(value).map { |coordinates| map_coordinates(coordinates) } end |
#map_coordinates(value) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 6 def map_coordinates(value) case value when Array return { "latitude" => value[0], "longitude" => value[1] } if value.length >= 2 when Hash latitude = value["latitude"] || value[:latitude] || value["lat"] || value[:lat] longitude = value["longitude"] || value[:longitude] || value["lon"] || value[:lon] || value["lng"] || value[:lng] return { "latitude" => latitude, "longitude" => longitude } unless latitude.nil? || longitude.nil? end value.respond_to?(:to_h) ? map_coordinates(value.to_h) : value end |
#markdown(value = nil, **props) ⇒ Object
592 593 594 595 596 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 592 def markdown(value = nil, **props) mapped = props.dup mapped[:value] = value unless value.nil? (:markdown, **mapped) end |
#marker(content = nil, **props) ⇒ Object
205 206 207 208 209 210 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 205 def marker(content = nil, **props) mapped = props.dup mapped[:coordinates] = map_coordinates(mapped[:coordinates]) if mapped.key?(:coordinates) mapped[:content] = content unless content.nil? (:marker, **mapped) end |
#marker_layer(markers = nil, **props) ⇒ Object
199 200 201 202 203 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 199 def marker_layer(markers = nil, **props) mapped = props.dup mapped[:markers] = markers unless markers.nil? (:markerlayer, **mapped) end |
#markerlayer(markers = nil, **props) ⇒ Object
204 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 204 def markerlayer(markers = nil, **props) = marker_layer(markers, **props) |
#menu_bar(children = nil, **props) ⇒ Object
255 256 257 258 259 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 255 def (children = nil, **props) mapped = props.dup mapped[:children] = children unless children.nil? (:menubar, **mapped) end |
#menu_item_button(content = nil, **props) ⇒ Object
261 262 263 264 265 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 261 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:menuitembutton, **mapped) end |
#menubar(children = nil, **props) ⇒ Object
260 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 260 def (children = nil, **props) = (children, **props) |
#menuitembutton(content = nil, **props) ⇒ Object
266 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 266 def (content = nil, **props) = (content, **props) |
#merge_semantics(content = nil, **props) ⇒ Object
267 268 269 270 271 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 267 def merge_semantics(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:mergesemantics, **mapped) end |
#mergesemantics(content = nil, **props) ⇒ Object
272 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 272 def mergesemantics(content = nil, **props) = merge_semantics(content, **props) |
#navigation_bar(**props, &block) ⇒ Object
642 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 642 def (**props, &block) = (:navigationbar, **props, &block) |
#navigation_bar_destination(**props, &block) ⇒ Object
644 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 644 def (**props, &block) = (:navigationbardestination, **props, &block) |
#navigation_drawer(children = nil, **props) ⇒ Object
650 651 652 653 654 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 650 def (children = nil, **props) mapped = props.dup mapped[:children] = children unless children.nil? (:navigationdrawer, **mapped) end |
#navigation_drawer_destination(**props) ⇒ Object
656 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 656 def (**props) = (:navigationdrawerdestination, **props) |
#navigation_rail(**props, &block) ⇒ Object
646 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 646 def (**props, &block) = (:navigationrail, **props, &block) |
#navigation_rail_destination(**props, &block) ⇒ Object
648 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 648 def (**props, &block) = (:navigationraildestination, **props, &block) |
#navigationbar(**props, &block) ⇒ Object
643 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 643 def (**props, &block) = (**props, &block) |
#navigationbardestination(**props, &block) ⇒ Object
645 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 645 def (**props, &block) = (**props, &block) |
#navigationdrawer(children = nil, **props) ⇒ Object
655 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 655 def (children = nil, **props) = (children, **props) |
#navigationdrawerdestination(**props) ⇒ Object
657 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 657 def (**props) = (**props) |
#navigationrail(**props, &block) ⇒ Object
647 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 647 def (**props, &block) = (**props, &block) |
#navigationraildestination(**props, &block) ⇒ Object
649 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 649 def (**props, &block) = (**props, &block) |
#outlined_button(content = nil, **props) ⇒ Object
501 502 503 504 505 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 501 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:outlinedbutton, **mapped) end |
#outlined_icon_button(icon = nil, **props) ⇒ Object
507 508 509 510 511 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 507 def (icon = nil, **props) mapped = props.dup mapped[:icon] = icon unless icon.nil? (:outlinediconbutton, **mapped) end |
#outlinedbutton(content = nil, **props) ⇒ Object
506 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 506 def (content = nil, **props) = (content, **props) |
#outlinediconbutton(icon = nil, **props) ⇒ Object
512 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 512 def (icon = nil, **props) = (icon, **props) |
#oval(**props) ⇒ Object
152 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 152 def oval(**props) = (:oval, **props) |
#overlay(children = nil, **props) ⇒ Object
111 112 113 114 115 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 111 def (children = nil, **props) mapped = props.dup mapped[:controls] = children unless children.nil? (:overlay, **mapped) end |
#page_view(children = nil, **props) ⇒ Object
354 355 356 357 358 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 354 def page_view(children = nil, **props) mapped = props.dup mapped[:children] = children unless children.nil? (:pageview, **mapped) end |
#pageview(children = nil, **props) ⇒ Object
359 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 359 def pageview(children = nil, **props) = page_view(children, **props) |
#paint(**props) ⇒ Object
157 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 157 def paint(**props) = drawing_payload(props) |
#path(**props) ⇒ Object
155 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 155 def path(**props) = (:path, **props) |
#path_arc(**props) ⇒ Object
160 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 160 def path_arc(**props) = drawing_payload(props.merge(_type: "Arc")) |
#path_arc_to(**props) ⇒ Object
161 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 161 def path_arc_to(**props) = drawing_payload(props.merge(_type: "ArcTo")) |
#path_close(**props) ⇒ Object
167 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 167 def path_close(**props) = drawing_payload(props.merge(_type: "Close")) |
#path_cubic_to(**props) ⇒ Object
165 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 165 def path_cubic_to(**props) = drawing_payload(props.merge(_type: "CubicTo")) |
#path_line_to(x = nil, y = nil, **props) ⇒ Object
159 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 159 def path_line_to(x = nil, y = nil, **props) = path_point_payload("LineTo", x, y, props) |
#path_move_to(x = nil, y = nil, **props) ⇒ Object
158 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 158 def path_move_to(x = nil, y = nil, **props) = path_point_payload("MoveTo", x, y, props) |
#path_oval(**props) ⇒ Object
162 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 162 def path_oval(**props) = drawing_payload(props.merge(_type: "Oval")) |
#path_quadratic_to(**props) ⇒ Object
164 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 164 def path_quadratic_to(**props) = drawing_payload(props.merge(_type: "QuadraticTo")) |
#path_rect(**props) ⇒ Object
163 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 163 def path_rect(**props) = drawing_payload(props.merge(_type: "Rect")) |
#path_sub_path(**props) ⇒ Object
166 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 166 def path_sub_path(**props) = drawing_payload(props.merge(_type: "SubPath")) |
#pie_chart(**props) ⇒ Object
672 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 672 def pie_chart(**props) = (:piechart, **props) |
#pie_chart_section(**props) ⇒ Object
674 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 674 def pie_chart_section(**props) = (:piechartsection, **props) |
#piechart(**props) ⇒ Object
673 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 673 def piechart(**props) = pie_chart(**props) |
#piechartsection(**props) ⇒ Object
675 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 675 def piechartsection(**props) = pie_chart_section(**props) |
#placeholder(content = nil, **props) ⇒ Object
349 350 351 352 353 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 349 def placeholder(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:placeholder, **mapped) end |
#points(**props) ⇒ Object
153 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 153 def points(**props) = (:points, **props) |
#polygon_layer(polygons = nil, **props) ⇒ Object
235 236 237 238 239 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 235 def polygon_layer(polygons = nil, **props) mapped = props.dup mapped[:polygons] = polygons unless polygons.nil? (:polygonlayer, **mapped) end |
#polygon_marker(**props) ⇒ Object
241 242 243 244 245 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 241 def polygon_marker(**props) mapped = props.dup mapped[:coordinates] = map_coordinate_list(mapped[:coordinates]) if mapped.key?(:coordinates) (:polygonmarker, **mapped) end |
#polygonlayer(polygons = nil, **props) ⇒ Object
240 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 240 def polygonlayer(polygons = nil, **props) = polygon_layer(polygons, **props) |
#polygonmarker(**props) ⇒ Object
246 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 246 def polygonmarker(**props) = polygon_marker(**props) |
#polyline_layer(polylines = nil, **props) ⇒ Object
223 224 225 226 227 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 223 def polyline_layer(polylines = nil, **props) mapped = props.dup mapped[:polylines] = polylines unless polylines.nil? (:polylinelayer, **mapped) end |
#polyline_marker(**props) ⇒ Object
229 230 231 232 233 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 229 def polyline_marker(**props) mapped = props.dup mapped[:coordinates] = map_coordinate_list(mapped[:coordinates]) if mapped.key?(:coordinates) (:polylinemarker, **mapped) end |
#polylinelayer(polylines = nil, **props) ⇒ Object
228 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 228 def polylinelayer(polylines = nil, **props) = polyline_layer(polylines, **props) |
#polylinemarker(**props) ⇒ Object
234 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 234 def polylinemarker(**props) = polyline_marker(**props) |
#popup_menu_button(items = nil, **props) ⇒ Object
526 527 528 529 530 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 526 def (items = nil, **props) mapped = props.dup mapped[:items] = items unless items.nil? (:popupmenubutton, **mapped) end |
#popup_menu_item(content = nil, **props) ⇒ Object
532 533 534 535 536 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 532 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:popupmenuitem, **mapped) end |
#popupmenubutton(items = nil, **props) ⇒ Object
531 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 531 def (items = nil, **props) = (items, **props) |
#popupmenuitem(content = nil, **props) ⇒ Object
537 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 537 def (content = nil, **props) = (content, **props) |
#progress_bar(**props) ⇒ Object
347 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 347 def (**props) = (:progressbar, **props) |
#progress_ring(**props) ⇒ Object
360 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 360 def progress_ring(**props) = (:progressring, **props) |
#progressbar(**props) ⇒ Object
348 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 348 def (**props) = (**props) |
#progressring(**props) ⇒ Object
361 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 361 def progressring(**props) = progress_ring(**props) |
#radar_chart(**props) ⇒ Object
680 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 680 def radar_chart(**props) = (:radarchart, **props) |
#radar_chart_title(**props) ⇒ Object
682 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 682 def radar_chart_title(**props) = (:radarcharttitle, **props) |
#radar_data_set(**props) ⇒ Object
684 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 684 def radar_data_set(**props) = (:radardataset, **props) |
#radar_data_set_entry(**props) ⇒ Object
686 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 686 def radar_data_set_entry(**props) = (:radardatasetentry, **props) |
#radarchart(**props) ⇒ Object
681 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 681 def radarchart(**props) = radar_chart(**props) |
#radarcharttitle(**props) ⇒ Object
683 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 683 def radarcharttitle(**props) = radar_chart_title(**props) |
#radardataset(**props) ⇒ Object
685 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 685 def radardataset(**props) = radar_data_set(**props) |
#radardatasetentry(**props) ⇒ Object
687 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 687 def radardatasetentry(**props) = radar_data_set_entry(**props) |
#radio(**props) ⇒ Object
564 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 564 def radio(**props) = (:radio, **props) |
#radio_group(content = nil, **props) ⇒ Object
565 566 567 568 569 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 565 def radio_group(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:radiogroup, **mapped) end |
#radiogroup(content = nil, **props) ⇒ Object
570 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 570 def radiogroup(content = nil, **props) = radio_group(content, **props) |
#range_slider(**props) ⇒ Object
373 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 373 def (**props) = (:rangeslider, **props) |
#rangeslider(**props) ⇒ Object
374 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 374 def (**props) = (**props) |
#rect(**props) ⇒ Object
154 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 154 def rect(**props) = (:rect, **props) |
#reorderable_drag_handle(content = nil, **props) ⇒ Object
381 382 383 384 385 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 381 def reorderable_drag_handle(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:reorderabledraghandle, **mapped) end |
#reorderable_list_view(children = nil, **props) ⇒ Object
387 388 389 390 391 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 387 def reorderable_list_view(children = nil, **props) mapped = props.dup mapped[:children] = children unless children.nil? (:reorderablelistview, **mapped) end |
#reorderabledraghandle(content = nil, **props) ⇒ Object
386 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 386 def reorderabledraghandle(content = nil, **props) = reorderable_drag_handle(content, **props) |
#reorderablelistview(children = nil, **props) ⇒ Object
392 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 392 def reorderablelistview(children = nil, **props) = reorderable_list_view(children, **props) |
#responsive_row(children = nil, **props, &block) ⇒ Object
375 376 377 378 379 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 375 def responsive_row(children = nil, **props, &block) mapped = props.dup mapped[:children] = children unless children.nil? (:responsiverow, **mapped, &block) end |
#responsiverow(children = nil, **props, &block) ⇒ Object
380 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 380 def responsiverow(children = nil, **props, &block) = responsive_row(children, **props, &block) |
#rive(src = nil, **props) ⇒ Object
705 706 707 708 709 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 705 def rive(src = nil, **props) mapped = props.dup mapped[:src] = src unless src.nil? (:rive, **mapped) end |
#rotated_box(content = nil, **props) ⇒ Object
553 554 555 556 557 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 553 def rotated_box(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:rotatedbox, **mapped) end |
#rotatedbox(content = nil, **props) ⇒ Object
558 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 558 def rotatedbox(content = nil, **props) = rotated_box(content, **props) |
#row(children = nil, **props, &block) ⇒ Object
52 53 54 55 56 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 52 def row(children = nil, **props, &block) mapped = props.dup mapped[:children] = children unless children.nil? (:row, **mapped, &block) end |
#safe_area(content = nil, **props) ⇒ Object
393 394 395 396 397 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 393 def safe_area(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:safearea, **mapped) end |
#safearea(content = nil, **props) ⇒ Object
398 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 398 def safearea(content = nil, **props) = safe_area(content, **props) |
#scatter_chart(**props) ⇒ Object
688 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 688 def scatter_chart(**props) = (:scatterchart, **props) |
#scatter_chart_spot(**props) ⇒ Object
690 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 690 def scatter_chart_spot(**props) = (:scatterchartspot, **props) |
#scatterchart(**props) ⇒ Object
689 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 689 def scatterchart(**props) = scatter_chart(**props) |
#scatterchartspot(**props) ⇒ Object
691 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 691 def scatterchartspot(**props) = scatter_chart_spot(**props) |
#screenshot(content = nil, **props) ⇒ Object
559 560 561 562 563 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 559 def screenshot(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:screenshot, **mapped) end |
#search_bar(children = nil, **props) ⇒ Object
416 417 418 419 420 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 416 def (children = nil, **props) mapped = props.dup mapped[:children] = children unless children.nil? (:searchbar, **mapped) end |
#searchbar(children = nil, **props) ⇒ Object
421 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 421 def (children = nil, **props) = (children, **props) |
#segment(value = nil, **props) ⇒ Object
399 400 401 402 403 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 399 def segment(value = nil, **props) mapped = props.dup mapped[:value] = value unless value.nil? (:segment, **mapped) end |
#segmented_button(segments = nil, **props) ⇒ Object
404 405 406 407 408 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 404 def (segments = nil, **props) mapped = props.dup mapped[:segments] = segments unless segments.nil? (:segmentedbutton, **mapped) end |
#segmentedbutton(segments = nil, **props) ⇒ Object
409 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 409 def (segments = nil, **props) = (segments, **props) |
#selection_area(content = nil, **props) ⇒ Object
410 411 412 413 414 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 410 def selection_area(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:selectionarea, **mapped) end |
#selectionarea(content = nil, **props) ⇒ Object
415 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 415 def selectionarea(content = nil, **props) = selection_area(content, **props) |
#semantics(content = nil, **props) ⇒ Object
422 423 424 425 426 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 422 def semantics(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:semantics, **mapped) end |
#shader_mask(content = nil, **props) ⇒ Object
116 117 118 119 120 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 116 def shader_mask(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:shadermask, **mapped) end |
#shadermask(content = nil, **props) ⇒ Object
121 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 121 def shadermask(content = nil, **props) = shader_mask(content, **props) |
#shadow(**props) ⇒ Object
156 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 156 def shadow(**props) = (:shadow, **props) |
#shimmer(content = nil, **props) ⇒ Object
122 123 124 125 126 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 122 def shimmer(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:shimmer, **mapped) end |
#simple_attribution(**props) ⇒ Object
247 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 247 def simple_attribution(**props) = (:simpleattribution, **props) |
#simpleattribution(**props) ⇒ Object
248 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 248 def simpleattribution(**props) = simple_attribution(**props) |
#slider(**props) ⇒ Object
546 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 546 def (**props) = (:slider, **props) |
#snack_bar(content = nil, **props) ⇒ Object
573 574 575 576 577 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 573 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:snackbar, **mapped) end |
#snack_bar_action(label = nil, **props) ⇒ Object
579 580 581 582 583 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 579 def (label = nil, **props) mapped = props.dup mapped[:label] = label unless label.nil? (:snackbaraction, **mapped) end |
#snackbar(content = nil, **props) ⇒ Object
578 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 578 def (content = nil, **props) = (content, **props) |
#snackbaraction(label = nil, **props) ⇒ Object
584 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 584 def (label = nil, **props) = (label, **props) |
#spinkit(**variants) ⇒ Object
364 365 366 367 368 369 370 371 372 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 364 def spinkit(**variants) selected = variants.select { |name, _value| SPINKIT_VARIANTS.include?(name) } raise ArgumentError, "spinkit requires exactly one variant" unless selected.length == 1 && selected.length == variants.length variant, = selected.first raise ArgumentError, "spinkit variant options must be a Hash" unless .is_a?(Hash) (:spinkit, variant: variant.to_s, **) end |
#stack(children = nil, **props, &block) ⇒ Object
57 58 59 60 61 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 57 def stack(children = nil, **props, &block) mapped = props.dup mapped[:children] = children unless children.nil? (:stack, **mapped, &block) end |
#submenu_button(children = nil, **props) ⇒ Object
273 274 275 276 277 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 273 def (children = nil, **props) mapped = props.dup mapped[:children] = children unless children.nil? (:submenubutton, **mapped) end |
#submenubutton(children = nil, **props) ⇒ Object
278 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 278 def (children = nil, **props) = (children, **props) |
#switch(**props) ⇒ Object
545 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 545 def switch(**props) = (:switch, **props) |
#tab(label = nil, **props, &block) ⇒ Object
624 625 626 627 628 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 624 def tab(label = nil, **props, &block) mapped = props.dup mapped[:label] = label unless label.nil? (:tab, **mapped, &block) end |
#tab_bar(tabs = nil, **props, &block) ⇒ Object
630 631 632 633 634 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 630 def (tabs = nil, **props, &block) mapped = props.dup mapped[:tabs] = tabs unless tabs.nil? (:tabbar, **mapped, &block) end |
#tab_bar_view(children = nil, **props, &block) ⇒ Object
636 637 638 639 640 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 636 def (children = nil, **props, &block) mapped = props.dup mapped[:children] = children unless children.nil? (:tabbarview, **mapped, &block) end |
#tabbar(tabs = nil, **props, &block) ⇒ Object
635 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 635 def (tabs = nil, **props, &block) = (tabs, **props, &block) |
#tabbarview(children = nil, **props, &block) ⇒ Object
641 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 641 def (children = nil, **props, &block) = (children, **props, &block) |
#tabs(content = nil, **props, &block) ⇒ Object
618 619 620 621 622 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 618 def tabs(content = nil, **props, &block) mapped = props.dup mapped[:content] = content unless content.nil? (:tabs, **mapped, &block) end |
#text(value = nil, **props) ⇒ Object
457 458 459 460 461 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 457 def text(value = nil, **props) mapped = props.dup mapped[:value] = value unless value.nil? (:text, **mapped) end |
#text_button(content = nil, **props) ⇒ Object
471 472 473 474 475 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 471 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:textbutton, **mapped) end |
#text_field(value = nil, **props) ⇒ Object
538 539 540 541 542 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 538 def text_field(value = nil, **props) mapped = props.dup mapped[:value] = value unless value.nil? (:textfield, **mapped) end |
#text_span(text = nil, **props) ⇒ Object
127 128 129 130 131 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 127 def text_span(text = nil, **props) mapped = props.dup mapped[:text] = text unless text.nil? (:textspan, **mapped) end |
#textbutton(content = nil, **props) ⇒ Object
476 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 476 def (content = nil, **props) = (content, **props) |
#textfield(**props) ⇒ Object
543 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 543 def textfield(**props) = text_field(**props) |
#textspan(text = nil, **props) ⇒ Object
132 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 132 def textspan(text = nil, **props) = text_span(text, **props) |
#tile_layer(**props) ⇒ Object
197 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 197 def tile_layer(**props) = (:tilelayer, **props) |
#tilelayer(**props) ⇒ Object
198 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 198 def tilelayer(**props) = tile_layer(**props) |
#time_picker(**props) ⇒ Object
427 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 427 def time_picker(**props) = (:timepicker, **props) |
#timepicker(**props) ⇒ Object
428 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 428 def timepicker(**props) = time_picker(**props) |
#transparent_pointer(content = nil, **props) ⇒ Object
547 548 549 550 551 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 547 def transparent_pointer(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:transparentpointer, **mapped) end |
#transparentpointer(content = nil, **props) ⇒ Object
552 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 552 def transparentpointer(content = nil, **props) = transparent_pointer(content, **props) |
#url_launcher(**props) ⇒ Object
614 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 614 def url_launcher(**props) = (:url_launcher, **props) |
#vertical_divider(**props) ⇒ Object
280 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 280 def vertical_divider(**props) = (:verticaldivider, **props) |
#verticaldivider(**props) ⇒ Object
281 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 281 def verticaldivider(**props) = vertical_divider(**props) |
#video(**props) ⇒ Object
698 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 698 def video(**props) = (:video, **props) |
#view(children = nil, **props, &block) ⇒ Object
22 23 24 25 26 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 22 def view(children = nil, **props, &block) mapped = props.dup mapped[:children] = children unless children.nil? (:view, **mapped, &block) end |
#web_view(**props) ⇒ Object
696 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 696 def web_view(**props) = (:webview, **props) |
#webview(**props) ⇒ Object
697 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 697 def webview(**props) = web_view(**props) |
#window_drag_area(content = nil, **props) ⇒ Object
282 283 284 285 286 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 282 def window_drag_area(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:windowdragarea, **mapped) end |
#windowdragarea(content = nil, **props) ⇒ Object
287 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 287 def windowdragarea(content = nil, **props) = window_drag_area(content, **props) |