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
- #accelerometer(**props) ⇒ Object
- #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
- #audio_recorder(**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
- #banner_ad(**props) ⇒ Object
- #bannerad(**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
- #barometer(**props) ⇒ Object
- #base_page(**props, &block) ⇒ Object
- #basepage(**props, &block) ⇒ Object
- #battery(**props) ⇒ Object
- #block_picker(**props) ⇒ Object
- #blockpicker(**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
- #browser_context_menu(**props) ⇒ Object
- #button(content = nil, **props) ⇒ Object
- #camera(**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
- #color_picker(**props) ⇒ Object
- #colorpicker(**props) ⇒ Object
- #column(children = nil, **props, &block) ⇒ Object
- #connectivity(**props) ⇒ 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_column2(label = nil, **props) ⇒ Object
- #data_row(cells = nil, **props) ⇒ Object
- #data_row2(cells = nil, **props) ⇒ Object
- #data_table(columns = nil, **props) ⇒ Object
- #data_table2(columns = nil, **props) ⇒ Object
- #datacell(content = nil, **props) ⇒ Object
- #datacolumn(label = nil, **props) ⇒ Object
- #datacolumn2(label = nil, **props) ⇒ Object
- #datarow(cells = nil, **props) ⇒ Object
- #datarow2(cells = nil, **props) ⇒ Object
- #datatable(columns = nil, **props) ⇒ Object
- #datatable2(columns = nil, **props) ⇒ Object
- #date_picker(**props) ⇒ Object
- #date_range_picker(**props) ⇒ Object
- #datepicker(**props) ⇒ Object
- #daterangepicker(**props) ⇒ Object
- #dialogs(controls = nil, **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
- #file_picker(**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
- #flashlight(**props) ⇒ Object
- #floating_action_button(**props) ⇒ Object
- #floatingactionbutton(**props) ⇒ Object
- #geolocator(**props) ⇒ Object
- #gesture_detector(**props, &block) ⇒ Object
- #gesturedetector(**props, &block) ⇒ Object
- #grid_view(children = nil, **props, &block) ⇒ Object
- #gridview(children = nil, **props, &block) ⇒ Object
- #gyroscope(**props) ⇒ Object
- #haptic_feedback(**props) ⇒ Object
- #hero(content = nil, **props) ⇒ Object
- #hue_ring_picker(**props) ⇒ Object
- #hueringpicker(**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
- #image_source_attribution(image = nil, **props) ⇒ Object
- #imagesourceattribution(image = nil, **props) ⇒ Object
- #interactive_viewer(content = nil, **props) ⇒ Object
- #interactiveviewer(content = nil, **props) ⇒ Object
- #interstitial_ad(**props) ⇒ Object
- #interstitialad(**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
- #lottie(src = nil, **props) ⇒ Object
- #magnetometer(**props) ⇒ Object
- #map(layers = nil, **props) ⇒ Object
- #map_coordinate_list(value) ⇒ Object
- #map_coordinates(value) ⇒ Object
- #map_layer(**props) ⇒ Object
- #maplayer(**props) ⇒ Object
- #markdown(value = nil, **props) ⇒ Object
- #marker(content = nil, **props) ⇒ Object
- #marker_layer(markers = nil, **props) ⇒ Object
- #markerlayer(markers = nil, **props) ⇒ Object
- #material_picker(**props) ⇒ Object
- #materialpicker(**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
- #multiple_choice_block_picker(**props) ⇒ Object
- #multiplechoiceblockpicker(**props) ⇒ Object
- #native_ad(**props) ⇒ Object
- #nativead(**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
- #option(key = nil, **props) ⇒ 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
- #pagelet(content = nil, **props, &block) ⇒ 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
- #permission_handler(**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
- #rich_attribution(attributions = nil, **props) ⇒ Object
- #richattribution(attributions = nil, **props) ⇒ Object
- #rive(src = nil, **props) ⇒ Object
- #rotated_box(content = nil, **props) ⇒ Object
- #rotatedbox(content = nil, **props) ⇒ Object
- #row(children = nil, **props, &block) ⇒ Object
- #ruflet_app(**props) ⇒ Object
- #rufletapp(**props) ⇒ 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
- #screen_brightness(**props) ⇒ Object
- #screenshot(content = nil, **props) ⇒ Object
- #search_bar(children = nil, **props) ⇒ Object
- #searchbar(children = nil, **props) ⇒ Object
- #secure_storage(**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
- #semantics_service(**props) ⇒ Object
- #service_registry(services = nil, **props) ⇒ Object
- #serviceregistry(services = nil, **props) ⇒ Object
- #shader_mask(content = nil, **props) ⇒ Object
- #shadermask(content = nil, **props) ⇒ Object
- #shadow(**props) ⇒ Object
- #shake_detector(**props) ⇒ Object
- #share(**props) ⇒ Object
- #shared_preferences(**props) ⇒ Object
- #shimmer(content = nil, **props) ⇒ Object
- #simple_attribution(**props) ⇒ Object
- #simpleattribution(**props) ⇒ Object
- #slide_picker(**props) ⇒ Object
- #slidepicker(**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
- #storage_paths(**props) ⇒ 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_source_attribution(text = nil, **props) ⇒ Object
- #text_span(text = nil, **props) ⇒ Object
- #textbutton(content = nil, **props) ⇒ Object
- #textfield(**props) ⇒ Object
- #textsourceattribution(text = nil, **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
- #user_accelerometer(**props) ⇒ Object
- #vertical_divider(**props) ⇒ Object
- #verticaldivider(**props) ⇒ Object
- #video(**props) ⇒ Object
- #view(children = nil, **props, &block) ⇒ Object
- #wakelock(**props) ⇒ Object
- #web_view(**props) ⇒ Object
- #webview(**props) ⇒ Object
- #window(**props) ⇒ Object
- #window_drag_area(content = nil, **props) ⇒ Object
- #windowdragarea(content = nil, **props) ⇒ Object
Instance Method Details
#accelerometer(**props) ⇒ Object
102 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 102 def accelerometer(**props) = build_service(:accelerometer, **props) |
#alert_dialog(**props) ⇒ Object
658 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 658 def alert_dialog(**props) = (:alertdialog, **props) |
#alertdialog(**props) ⇒ Object
659 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 659 def alertdialog(**props) = alert_dialog(**props) |
#animated_switcher(content = nil, **props) ⇒ Object
91 92 93 94 95 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 91 def animated_switcher(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:animatedswitcher, **mapped) end |
#animatedswitcher(content = nil, **props) ⇒ Object
96 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 96 def animatedswitcher(content = nil, **props) = animated_switcher(content, **props) |
#animation(duration = nil, **props) ⇒ Object
97 98 99 100 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 97 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
101 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 101 def animation_style(**props) = Ruflet::AnimationStyle.new(**props) |
#app_bar(**props) ⇒ Object
699 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 699 def (**props) = (:appbar, **props) |
#appbar(**props) ⇒ Object
700 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 700 def (**props) = (**props) |
#arc(**props) ⇒ Object
194 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 194 def arc(**props) = (:arc, **props) |
#audio(**props) ⇒ Object
103 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 103 def audio(**props) = build_service(:audio, **props) |
#audio_recorder(**props) ⇒ Object
104 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 104 def audio_recorder(**props) = build_service(:audio_recorder, **props) |
#auto_complete(suggestions = nil, **props) ⇒ Object
127 128 129 130 131 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 127 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
133 134 135 136 137 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 133 def auto_complete_suggestion(key = nil, **props) mapped = props.dup mapped[:key] = key unless key.nil? (:autocompletesuggestion, **mapped) end |
#autocomplete(suggestions = nil, **props) ⇒ Object
132 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 132 def autocomplete(suggestions = nil, **props) = auto_complete(suggestions, **props) |
#autocomplete_suggestion(key = nil, **props) ⇒ Object
138 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 138 def autocomplete_suggestion(key = nil, **props) = auto_complete_suggestion(key, **props) |
#autocompletesuggestion(key = nil, **props) ⇒ Object
139 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 139 def autocompletesuggestion(key = nil, **props) = auto_complete_suggestion(key, **props) |
#autofill_group(content = nil, **props) ⇒ Object
146 147 148 149 150 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 146 def autofill_group(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:autofillgroup, **mapped) end |
#autofillgroup(content = nil, **props) ⇒ Object
151 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 151 def autofillgroup(content = nil, **props) = autofill_group(content, **props) |
#badge(label = nil, **props) ⇒ Object
516 517 518 519 520 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 516 def badge(label = nil, **props) mapped = props.dup mapped[:label] = label unless label.nil? (:badge, **mapped) end |
#banner(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? (:banner, **mapped) end |
#banner_ad(**props) ⇒ Object
797 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 797 def (**props) = (:banner_ad, **props) |
#bannerad(**props) ⇒ Object
798 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 798 def (**props) = (**props) |
#bar_chart(**props) ⇒ Object
744 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 744 def (**props) = (:barchart, **props) |
#bar_chart_group(**props) ⇒ Object
746 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 746 def (**props) = (:barchartgroup, **props) |
#bar_chart_rod(**props) ⇒ Object
748 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 748 def (**props) = (:barchartrod, **props) |
#bar_chart_rod_stack_item(**props) ⇒ Object
750 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 750 def (**props) = (:barchartrodstackitem, **props) |
#barchart(**props) ⇒ Object
745 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 745 def (**props) = (**props) |
#barchartgroup(**props) ⇒ Object
747 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 747 def (**props) = (**props) |
#barchartrod(**props) ⇒ Object
749 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 749 def (**props) = (**props) |
#barchartrodstackitem(**props) ⇒ Object
751 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 751 def (**props) = (**props) |
#barometer(**props) ⇒ Object
105 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 105 def (**props) = build_service(:barometer, **props) |
#base_page(**props, &block) ⇒ Object
22 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 22 def base_page(**props, &block) = (:base_page, **props, &block) |
#basepage(**props, &block) ⇒ Object
23 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 23 def basepage(**props, &block) = base_page(**props, &block) |
#battery(**props) ⇒ Object
106 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 106 def battery(**props) = build_service(:battery, **props) |
#block_picker(**props) ⇒ Object
785 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 785 def block_picker(**props) = (:block_picker, **props) |
#blockpicker(**props) ⇒ Object
786 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 786 def blockpicker(**props) = block_picker(**props) |
#bottom_app_bar(content = nil, **props) ⇒ Object
537 538 539 540 541 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 537 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:bottomappbar, **mapped) end |
#bottom_sheet(content = nil, **props) ⇒ Object
672 673 674 675 676 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 672 def bottom_sheet(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:bottomsheet, **mapped) end |
#bottomappbar(content = nil, **props) ⇒ Object
542 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 542 def (content = nil, **props) = (content, **props) |
#bottomsheet(content = nil, **props) ⇒ Object
677 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 677 def bottomsheet(content = nil, **props) = bottom_sheet(content, **props) |
#browser_context_menu(**props) ⇒ Object
107 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 107 def (**props) = build_service(:browser_context_menu, **props) |
#button(content = nil, **props) ⇒ Object
550 551 552 553 554 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 550 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:button, **mapped) end |
#camera(**props) ⇒ Object
108 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 108 def camera(**props) = (:camera, **props) |
#candlestick_chart(**props) ⇒ Object
762 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 762 def candlestick_chart(**props) = (:candlestickchart, **props) |
#candlestick_chart_spot(**props) ⇒ Object
764 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 764 def candlestick_chart_spot(**props) = (:candlestickchartspot, **props) |
#candlestickchart(**props) ⇒ Object
763 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 763 def candlestickchart(**props) = candlestick_chart(**props) |
#candlestickchartspot(**props) ⇒ Object
765 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 765 def candlestickchartspot(**props) = candlestick_chart_spot(**props) |
#canvas(shapes = nil, **props) ⇒ Object
187 188 189 190 191 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 187 def canvas(shapes = nil, **props) mapped = props.dup mapped[:shapes] = shapes unless shapes.nil? (:canvas, **mapped) end |
#canvas_color(**props) ⇒ Object
196 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 196 def canvas_color(**props) = color(**props) |
#card(content = nil, **props) ⇒ Object
230 231 232 233 234 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 230 def card(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:card, **mapped) end |
#center(**props, &block) ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 55 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
778 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 778 def chart_axis(**props) = (:chartaxis, **props) |
#chart_axis_label(**props) ⇒ Object
780 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 780 def chart_axis_label(**props) = (:chartaxislabel, **props) |
#chartaxis(**props) ⇒ Object
779 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 779 def chartaxis(**props) = chart_axis(**props) |
#chartaxislabel(**props) ⇒ Object
781 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 781 def chartaxislabel(**props) = chart_axis_label(**props) |
#checkbox(**props) ⇒ Object
631 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 631 def checkbox(**props) = (:checkbox, **props) |
#chip(label = nil, **props) ⇒ Object
521 522 523 524 525 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 521 def chip(label = nil, **props) mapped = props.dup mapped[:label] = label unless label.nil? (:chip, **mapped) end |
#circle(**props) ⇒ Object
193 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 193 def circle(**props) = (:circle, **props) |
#circle_avatar(content = nil, **props) ⇒ Object
526 527 528 529 530 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 526 def circle_avatar(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:circleavatar, **mapped) end |
#circle_layer(circles = nil, **props) ⇒ Object
257 258 259 260 261 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 257 def circle_layer(circles = nil, **props) mapped = props.dup mapped[:circles] = circles unless circles.nil? (:circlelayer, **mapped) end |
#circle_marker(**props) ⇒ Object
263 264 265 266 267 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 263 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
531 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 531 def circleavatar(content = nil, **props) = circle_avatar(content, **props) |
#circlelayer(circles = nil, **props) ⇒ Object
262 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 262 def circlelayer(circles = nil, **props) = circle_layer(circles, **props) |
#circlemarker(**props) ⇒ Object
268 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 268 def circlemarker(**props) = circle_marker(**props) |
#clipboard(**props) ⇒ Object
701 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 701 def clipboard(**props) = build_service(:clipboard, **props) |
#code_editor(value = nil, **props) ⇒ Object
803 804 805 806 807 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 803 def code_editor(value = nil, **props) mapped = props.dup mapped[:value] = value unless value.nil? (:codeeditor, **mapped) end |
#codeeditor(value = nil, **props) ⇒ Object
808 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 808 def codeeditor(value = nil, **props) = code_editor(value, **props) |
#color(**props) ⇒ Object
195 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 195 def color(**props) = (:color, **props) |
#color_picker(**props) ⇒ Object
787 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 787 def color_picker(**props) = (:color_picker, **props) |
#colorpicker(**props) ⇒ Object
788 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 788 def colorpicker(**props) = color_picker(**props) |
#column(children = nil, **props, &block) ⇒ Object
49 50 51 52 53 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 49 def column(children = nil, **props, &block) mapped = props.dup mapped[:children] = children unless children.nil? (:column, **mapped, &block) end |
#connectivity(**props) ⇒ Object
109 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 109 def connectivity(**props) = build_service(:connectivity, **props) |
#container(**props, &block) ⇒ Object
90 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 90 def container(**props, &block) = (:container, **normalize_container_props(props), &block) |
#context_menu(content = nil, **props) ⇒ Object
140 141 142 143 144 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 140 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:contextmenu, **mapped) end |
#contextmenu(content = nil, **props) ⇒ Object
145 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 145 def (content = nil, **props) = (content, **props) |
#data_cell(content = nil, **props) ⇒ Object
376 377 378 379 380 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 376 def data_cell(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:datacell, **mapped) end |
#data_column(label = nil, **props) ⇒ Object
364 365 366 367 368 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 364 def data_column(label = nil, **props) mapped = props.dup mapped[:label] = label unless label.nil? (:datacolumn, **mapped) end |
#data_column2(label = nil, **props) ⇒ Object
393 394 395 396 397 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 393 def data_column2(label = nil, **props) mapped = props.dup mapped[:label] = label unless label.nil? (:data_column2, **mapped) end |
#data_row(cells = nil, **props) ⇒ Object
370 371 372 373 374 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 370 def data_row(cells = nil, **props) mapped = props.dup mapped[:cells] = cells unless cells.nil? (:datarow, **mapped) end |
#data_row2(cells = nil, **props) ⇒ Object
399 400 401 402 403 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 399 def data_row2(cells = nil, **props) mapped = props.dup mapped[:cells] = cells unless cells.nil? (:data_row2, **mapped) end |
#data_table(columns = nil, **props) ⇒ Object
358 359 360 361 362 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 358 def data_table(columns = nil, **props) mapped = props.dup mapped[:columns] = columns unless columns.nil? (:datatable, **mapped) end |
#data_table2(columns = nil, **props) ⇒ Object
387 388 389 390 391 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 387 def data_table2(columns = nil, **props) mapped = props.dup mapped[:columns] = columns unless columns.nil? (:data_table2, **mapped) end |
#datacell(content = nil, **props) ⇒ Object
381 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 381 def datacell(content = nil, **props) = data_cell(content, **props) |
#datacolumn(label = nil, **props) ⇒ Object
369 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 369 def datacolumn(label = nil, **props) = data_column(label, **props) |
#datacolumn2(label = nil, **props) ⇒ Object
398 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 398 def datacolumn2(label = nil, **props) = data_column2(label, **props) |
#datarow(cells = nil, **props) ⇒ Object
375 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 375 def datarow(cells = nil, **props) = data_row(cells, **props) |
#datarow2(cells = nil, **props) ⇒ Object
404 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 404 def datarow2(cells = nil, **props) = data_row2(cells, **props) |
#datatable(columns = nil, **props) ⇒ Object
363 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 363 def datatable(columns = nil, **props) = data_table(columns, **props) |
#datatable2(columns = nil, **props) ⇒ Object
392 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 392 def datatable2(columns = nil, **props) = data_table2(columns, **props) |
#date_picker(**props) ⇒ Object
354 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 354 def date_picker(**props) = (:datepicker, **props) |
#date_range_picker(**props) ⇒ Object
356 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 356 def date_range_picker(**props) = (:daterangepicker, **props) |
#datepicker(**props) ⇒ Object
355 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 355 def datepicker(**props) = date_picker(**props) |
#daterangepicker(**props) ⇒ Object
357 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 357 def daterangepicker(**props) = date_range_picker(**props) |
#dialogs(controls = nil, **props) ⇒ Object
24 25 26 27 28 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 24 def dialogs(controls = nil, **props) mapped = props.dup mapped[:controls] = controls unless controls.nil? (:dialogs, **mapped) end |
#dismissible(content = nil, **props) ⇒ Object
219 220 221 222 223 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 219 def dismissible(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:dismissible, **mapped) end |
#divider(**props) ⇒ Object
345 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 345 def divider(**props) = (:divider, **props) |
#drag_target(content = nil, **props, &block) ⇒ Object
224 225 226 227 228 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 224 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
214 215 216 217 218 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 214 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
229 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 229 def dragtarget(content = nil, **props, &block) = drag_target(content, **props, &block) |
#dropdown(options = nil, **props) ⇒ Object
419 420 421 422 423 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 419 def dropdown( = nil, **props) mapped = props.dup mapped[:options] = unless .nil? (:dropdown, **mapped) end |
#dropdown_m2(options = nil, **props) ⇒ Object
430 431 432 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 430 def dropdown_m2( = nil, **props) dropdown(, **props) end |
#dropdown_option(key = nil, **props) ⇒ Object
424 425 426 427 428 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 424 def dropdown_option(key = nil, **props) mapped = props.dup mapped[:key] = key unless key.nil? (:dropdownoption, **mapped) end |
#dropdownm2(options = nil, **props) ⇒ Object
433 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 433 def dropdownm2( = nil, **props) = dropdown_m2(, **props) |
#dropdownoption(key = nil, **props) ⇒ Object
429 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 429 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.
557 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 557 def (content = nil, **props) = (content, **props) |
#expansion_panel(**props) ⇒ Object
411 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 411 def expansion_panel(**props) = (:expansionpanel, **props) |
#expansion_panel_list(children = nil, **props) ⇒ Object
413 414 415 416 417 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 413 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
405 406 407 408 409 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 405 def expansion_tile(children = nil, **props) mapped = props.dup mapped[:children] = children unless children.nil? (:expansiontile, **mapped) end |
#expansionpanel(**props) ⇒ Object
412 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 412 def expansionpanel(**props) = expansion_panel(**props) |
#expansionpanellist(children = nil, **props) ⇒ Object
418 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 418 def expansionpanellist(children = nil, **props) = expansion_panel_list(children, **props) |
#expansiontile(children = nil, **props) ⇒ Object
410 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 410 def expansiontile(children = nil, **props) = expansion_tile(children, **props) |
#fab(content = nil, **props) ⇒ Object
820 821 822 823 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 820 def fab(content = nil, **props) mapped = normalize_fab_props(props.dup, content) (:floatingactionbutton, **mapped) end |
#file_picker(**props) ⇒ Object
110 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 110 def file_picker(**props) = build_service(:file_picker, **props) |
#fill(**props) ⇒ Object
197 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 197 def fill(**props) = (:fill, **props) |
#filled_button(content = nil, **props) ⇒ Object
564 565 566 567 568 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 564 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:filledbutton, **mapped) end |
#filled_icon_button(icon = nil, **props) ⇒ Object
570 571 572 573 574 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 570 def (icon = nil, **props) mapped = props.dup mapped[:icon] = icon unless icon.nil? (:fillediconbutton, **mapped) end |
#filled_tonal_button(content = nil, **props) ⇒ Object
576 577 578 579 580 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 576 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:filledtonalbutton, **mapped) end |
#filled_tonal_icon_button(icon = nil, **props) ⇒ Object
582 583 584 585 586 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 582 def (icon = nil, **props) mapped = props.dup mapped[:icon] = icon unless icon.nil? (:filledtonaliconbutton, **mapped) end |
#filledbutton(content = nil, **props) ⇒ Object
569 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 569 def (content = nil, **props) = (content, **props) |
#fillediconbutton(icon = nil, **props) ⇒ Object
575 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 575 def (icon = nil, **props) = (icon, **props) |
#filledtonalbutton(content = nil, **props) ⇒ Object
581 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 581 def (content = nil, **props) = (content, **props) |
#filledtonaliconbutton(icon = nil, **props) ⇒ Object
587 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 587 def (icon = nil, **props) = (icon, **props) |
#flashlight(**props) ⇒ Object
111 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 111 def flashlight(**props) = build_service(:flashlight, **props) |
#floating_action_button(**props) ⇒ Object
702 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 702 def (**props) = (:floatingactionbutton, **props) |
#floatingactionbutton(**props) ⇒ Object
703 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 703 def (**props) = (**props) |
#geolocator(**props) ⇒ Object
112 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 112 def geolocator(**props) = build_service(:geolocator, **props) |
#gesture_detector(**props, &block) ⇒ Object
185 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 185 def gesture_detector(**props, &block) = (:gesturedetector, **props, &block) |
#gesturedetector(**props, &block) ⇒ Object
186 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 186 def gesturedetector(**props, &block) = gesture_detector(**props, &block) |
#grid_view(children = nil, **props, &block) ⇒ Object
84 85 86 87 88 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 84 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
89 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 89 def gridview(children = nil, **props, &block) = grid_view(children, **props, &block) |
#gyroscope(**props) ⇒ Object
113 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 113 def gyroscope(**props) = build_service(:gyroscope, **props) |
#haptic_feedback(**props) ⇒ Object
114 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 114 def haptic_feedback(**props) = build_service(:haptic_feedback, **props) |
#hero(content = nil, **props) ⇒ Object
152 153 154 155 156 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 152 def hero(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:hero, **mapped) end |
#hue_ring_picker(**props) ⇒ Object
789 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 789 def hue_ring_picker(**props) = (:hue_ring_picker, **props) |
#hueringpicker(**props) ⇒ Object
790 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 790 def hueringpicker(**props) = hue_ring_picker(**props) |
#icon(icon = nil, **props) ⇒ Object
685 686 687 688 689 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 685 def icon(icon = nil, **props) mapped = props.dup mapped[:icon] = icon unless icon.nil? (:icon, **mapped) end |
#icon_button(icon = nil, **props) ⇒ Object
601 602 603 604 605 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 601 def (icon = nil, **props) mapped = props.dup mapped[:icon] = icon unless icon.nil? (:iconbutton, **mapped) end |
#iconbutton(icon = nil, **props) ⇒ Object
606 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 606 def (icon = nil, **props) = (icon, **props) |
#image(src = nil, src_base64: nil, placeholder_src: nil, **props) ⇒ Object
691 692 693 694 695 696 697 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 691 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 |
#image_source_attribution(image = nil, **props) ⇒ Object
303 304 305 306 307 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 303 def image_source_attribution(image = nil, **props) mapped = props.dup mapped[:image] = image unless image.nil? (:imagesourceattribution, **mapped) end |
#imagesourceattribution(image = nil, **props) ⇒ Object
308 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 308 def imagesourceattribution(image = nil, **props) = image_source_attribution(image, **props) |
#interactive_viewer(content = nil, **props) ⇒ Object
607 608 609 610 611 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 607 def interactive_viewer(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:interactiveviewer, **mapped) end |
#interactiveviewer(content = nil, **props) ⇒ Object
612 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 612 def interactiveviewer(content = nil, **props) = interactive_viewer(content, **props) |
#interstitial_ad(**props) ⇒ Object
799 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 799 def interstitial_ad(**props) = (:interstitial_ad, **props) |
#interstitialad(**props) ⇒ Object
800 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 800 def interstitialad(**props) = interstitial_ad(**props) |
#keyboard_listener(content = nil, **props) ⇒ Object
179 180 181 182 183 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 179 def keyboard_listener(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:keyboardlistener, **mapped) end |
#keyboardlistener(content = nil, **props) ⇒ Object
184 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 184 def keyboardlistener(content = nil, **props) = keyboard_listener(content, **props) |
#line(**props) ⇒ Object
192 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 192 def line(**props) = (:line, **props) |
#line_chart(**props) ⇒ Object
752 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 752 def line_chart(**props) = (:linechart, **props) |
#line_chart_data(**props) ⇒ Object
754 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 754 def line_chart_data(**props) = (:linechartdata, **props) |
#line_chart_data_point(**props) ⇒ Object
756 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 756 def line_chart_data_point(**props) = (:linechartdatapoint, **props) |
#linechart(**props) ⇒ Object
753 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 753 def linechart(**props) = line_chart(**props) |
#linechartdata(**props) ⇒ Object
755 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 755 def linechartdata(**props) = line_chart_data(**props) |
#linechartdatapoint(**props) ⇒ Object
757 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 757 def linechartdatapoint(**props) = line_chart_data_point(**props) |
#list_tile(**props) ⇒ Object
235 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 235 def list_tile(**props) = (:listtile, **props) |
#list_view(children = nil, **props) ⇒ Object
315 316 317 318 319 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 315 def list_view(children = nil, **props) mapped = props.dup mapped[:children] = children unless children.nil? (:listview, **mapped) end |
#listtile(**props) ⇒ Object
236 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 236 def listtile(**props) = list_tile(**props) |
#listview(children = nil, **props) ⇒ Object
320 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 320 def listview(children = nil, **props) = list_view(children, **props) |
#lottie(src = nil, **props) ⇒ Object
809 810 811 812 813 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 809 def lottie(src = nil, **props) mapped = props.dup mapped[:src] = src unless src.nil? (:lottie, **mapped) end |
#magnetometer(**props) ⇒ Object
115 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 115 def magnetometer(**props) = build_service(:magnetometer, **props) |
#map(layers = nil, **props) ⇒ Object
237 238 239 240 241 242 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 237 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 |
#map_layer(**props) ⇒ Object
295 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 295 def map_layer(**props) = (:maplayer, **props) |
#maplayer(**props) ⇒ Object
296 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 296 def maplayer(**props) = map_layer(**props) |
#markdown(value = nil, **props) ⇒ Object
679 680 681 682 683 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 679 def markdown(value = nil, **props) mapped = props.dup mapped[:value] = value unless value.nil? (:markdown, **mapped) end |
#marker(content = nil, **props) ⇒ Object
251 252 253 254 255 256 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 251 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
245 246 247 248 249 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 245 def marker_layer(markers = nil, **props) mapped = props.dup mapped[:markers] = markers unless markers.nil? (:markerlayer, **mapped) end |
#markerlayer(markers = nil, **props) ⇒ Object
250 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 250 def markerlayer(markers = nil, **props) = marker_layer(markers, **props) |
#material_picker(**props) ⇒ Object
791 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 791 def material_picker(**props) = (:material_picker, **props) |
#materialpicker(**props) ⇒ Object
792 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 792 def materialpicker(**props) = material_picker(**props) |
#menu_bar(children = nil, **props) ⇒ Object
321 322 323 324 325 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 321 def (children = nil, **props) mapped = props.dup mapped[:children] = children unless children.nil? (:menubar, **mapped) end |
#menu_item_button(content = nil, **props) ⇒ Object
327 328 329 330 331 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 327 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:menuitembutton, **mapped) end |
#menubar(children = nil, **props) ⇒ Object
326 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 326 def (children = nil, **props) = (children, **props) |
#menuitembutton(content = nil, **props) ⇒ Object
332 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 332 def (content = nil, **props) = (content, **props) |
#merge_semantics(content = nil, **props) ⇒ Object
333 334 335 336 337 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 333 def merge_semantics(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:mergesemantics, **mapped) end |
#mergesemantics(content = nil, **props) ⇒ Object
338 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 338 def mergesemantics(content = nil, **props) = merge_semantics(content, **props) |
#multiple_choice_block_picker(**props) ⇒ Object
793 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 793 def multiple_choice_block_picker(**props) = (:multiple_choice_block_picker, **props) |
#multiplechoiceblockpicker(**props) ⇒ Object
794 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 794 def multiplechoiceblockpicker(**props) = multiple_choice_block_picker(**props) |
#native_ad(**props) ⇒ Object
801 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 801 def native_ad(**props) = (:native_ad, **props) |
#nativead(**props) ⇒ Object
802 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 802 def nativead(**props) = native_ad(**props) |
#navigation_bar(**props, &block) ⇒ Object
728 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 728 def (**props, &block) = (:navigationbar, **props, &block) |
#navigation_bar_destination(**props, &block) ⇒ Object
730 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 730 def (**props, &block) = (:navigationbardestination, **props, &block) |
#navigation_drawer(children = nil, **props) ⇒ Object
736 737 738 739 740 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 736 def (children = nil, **props) mapped = props.dup mapped[:children] = children unless children.nil? (:navigationdrawer, **mapped) end |
#navigation_drawer_destination(**props) ⇒ Object
742 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 742 def (**props) = (:navigationdrawerdestination, **props) |
#navigation_rail(**props, &block) ⇒ Object
732 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 732 def (**props, &block) = (:navigationrail, **props, &block) |
#navigation_rail_destination(**props, &block) ⇒ Object
734 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 734 def (**props, &block) = (:navigationraildestination, **props, &block) |
#navigationbar(**props, &block) ⇒ Object
729 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 729 def (**props, &block) = (**props, &block) |
#navigationbardestination(**props, &block) ⇒ Object
731 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 731 def (**props, &block) = (**props, &block) |
#navigationdrawer(children = nil, **props) ⇒ Object
741 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 741 def (children = nil, **props) = (children, **props) |
#navigationdrawerdestination(**props) ⇒ Object
743 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 743 def (**props) = (**props) |
#navigationrail(**props, &block) ⇒ Object
733 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 733 def (**props, &block) = (**props, &block) |
#navigationraildestination(**props, &block) ⇒ Object
735 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 735 def (**props, &block) = (**props, &block) |
#option(key = nil, **props) ⇒ Object
382 383 384 385 386 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 382 def option(key = nil, **props) mapped = props.dup mapped[:key] = key unless key.nil? (:option, **mapped) end |
#outlined_button(content = nil, **props) ⇒ Object
588 589 590 591 592 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 588 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:outlinedbutton, **mapped) end |
#outlined_icon_button(icon = nil, **props) ⇒ Object
594 595 596 597 598 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 594 def (icon = nil, **props) mapped = props.dup mapped[:icon] = icon unless icon.nil? (:outlinediconbutton, **mapped) end |
#outlinedbutton(content = nil, **props) ⇒ Object
593 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 593 def (content = nil, **props) = (content, **props) |
#outlinediconbutton(icon = nil, **props) ⇒ Object
599 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 599 def (icon = nil, **props) = (icon, **props) |
#oval(**props) ⇒ Object
198 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 198 def oval(**props) = (:oval, **props) |
#overlay(children = nil, **props) ⇒ Object
157 158 159 160 161 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 157 def (children = nil, **props) mapped = props.dup mapped[:controls] = children unless children.nil? (:overlay, **mapped) end |
#page_view(children = nil, **props) ⇒ Object
441 442 443 444 445 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 441 def page_view(children = nil, **props) mapped = props.dup mapped[:children] = children unless children.nil? (:pageview, **mapped) end |
#pagelet(content = nil, **props, &block) ⇒ Object
29 30 31 32 33 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 29 def pagelet(content = nil, **props, &block) mapped = props.dup mapped[:content] = content unless content.nil? (:pagelet, **mapped, &block) end |
#pageview(children = nil, **props) ⇒ Object
446 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 446 def pageview(children = nil, **props) = page_view(children, **props) |
#paint(**props) ⇒ Object
203 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 203 def paint(**props) = drawing_payload(props) |
#path(**props) ⇒ Object
201 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 201 def path(**props) = (:path, **props) |
#path_arc(**props) ⇒ Object
206 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 206 def path_arc(**props) = drawing_payload(props.merge(_type: "Arc")) |
#path_arc_to(**props) ⇒ Object
207 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 207 def path_arc_to(**props) = drawing_payload(props.merge(_type: "ArcTo")) |
#path_close(**props) ⇒ Object
213 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 213 def path_close(**props) = drawing_payload(props.merge(_type: "Close")) |
#path_cubic_to(**props) ⇒ Object
211 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 211 def path_cubic_to(**props) = drawing_payload(props.merge(_type: "CubicTo")) |
#path_line_to(x = nil, y = nil, **props) ⇒ Object
205 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 205 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
204 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 204 def path_move_to(x = nil, y = nil, **props) = path_point_payload("MoveTo", x, y, props) |
#path_oval(**props) ⇒ Object
208 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 208 def path_oval(**props) = drawing_payload(props.merge(_type: "Oval")) |
#path_quadratic_to(**props) ⇒ Object
210 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 210 def path_quadratic_to(**props) = drawing_payload(props.merge(_type: "QuadraticTo")) |
#path_rect(**props) ⇒ Object
209 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 209 def path_rect(**props) = drawing_payload(props.merge(_type: "Rect")) |
#path_sub_path(**props) ⇒ Object
212 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 212 def path_sub_path(**props) = drawing_payload(props.merge(_type: "SubPath")) |
#permission_handler(**props) ⇒ Object
116 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 116 def (**props) = build_service(:permission_handler, **props) |
#pie_chart(**props) ⇒ Object
758 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 758 def pie_chart(**props) = (:piechart, **props) |
#pie_chart_section(**props) ⇒ Object
760 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 760 def pie_chart_section(**props) = (:piechartsection, **props) |
#piechart(**props) ⇒ Object
759 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 759 def piechart(**props) = pie_chart(**props) |
#piechartsection(**props) ⇒ Object
761 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 761 def piechartsection(**props) = pie_chart_section(**props) |
#placeholder(content = nil, **props) ⇒ Object
436 437 438 439 440 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 436 def placeholder(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:placeholder, **mapped) end |
#points(**props) ⇒ Object
199 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 199 def points(**props) = (:points, **props) |
#polygon_layer(polygons = nil, **props) ⇒ Object
281 282 283 284 285 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 281 def polygon_layer(polygons = nil, **props) mapped = props.dup mapped[:polygons] = polygons unless polygons.nil? (:polygonlayer, **mapped) end |
#polygon_marker(**props) ⇒ Object
287 288 289 290 291 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 287 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
286 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 286 def polygonlayer(polygons = nil, **props) = polygon_layer(polygons, **props) |
#polygonmarker(**props) ⇒ Object
292 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 292 def polygonmarker(**props) = polygon_marker(**props) |
#polyline_layer(polylines = nil, **props) ⇒ Object
269 270 271 272 273 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 269 def polyline_layer(polylines = nil, **props) mapped = props.dup mapped[:polylines] = polylines unless polylines.nil? (:polylinelayer, **mapped) end |
#polyline_marker(**props) ⇒ Object
275 276 277 278 279 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 275 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
274 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 274 def polylinelayer(polylines = nil, **props) = polyline_layer(polylines, **props) |
#polylinemarker(**props) ⇒ Object
280 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 280 def polylinemarker(**props) = polyline_marker(**props) |
#popup_menu_button(items = nil, **props) ⇒ Object
613 614 615 616 617 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 613 def (items = nil, **props) mapped = props.dup mapped[:items] = items unless items.nil? (:popupmenubutton, **mapped) end |
#popup_menu_item(content = nil, **props) ⇒ Object
619 620 621 622 623 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 619 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:popupmenuitem, **mapped) end |
#popupmenubutton(items = nil, **props) ⇒ Object
618 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 618 def (items = nil, **props) = (items, **props) |
#popupmenuitem(content = nil, **props) ⇒ Object
624 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 624 def (content = nil, **props) = (content, **props) |
#progress_bar(**props) ⇒ Object
434 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 434 def (**props) = (:progressbar, **props) |
#progress_ring(**props) ⇒ Object
447 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 447 def progress_ring(**props) = (:progressring, **props) |
#progressbar(**props) ⇒ Object
435 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 435 def (**props) = (**props) |
#progressring(**props) ⇒ Object
448 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 448 def progressring(**props) = progress_ring(**props) |
#radar_chart(**props) ⇒ Object
766 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 766 def radar_chart(**props) = (:radarchart, **props) |
#radar_chart_title(**props) ⇒ Object
768 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 768 def radar_chart_title(**props) = (:radarcharttitle, **props) |
#radar_data_set(**props) ⇒ Object
770 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 770 def radar_data_set(**props) = (:radardataset, **props) |
#radar_data_set_entry(**props) ⇒ Object
772 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 772 def radar_data_set_entry(**props) = (:radardatasetentry, **props) |
#radarchart(**props) ⇒ Object
767 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 767 def radarchart(**props) = radar_chart(**props) |
#radarcharttitle(**props) ⇒ Object
769 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 769 def radarcharttitle(**props) = radar_chart_title(**props) |
#radardataset(**props) ⇒ Object
771 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 771 def radardataset(**props) = radar_data_set(**props) |
#radardatasetentry(**props) ⇒ Object
773 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 773 def radardatasetentry(**props) = radar_data_set_entry(**props) |
#radio(**props) ⇒ Object
651 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 651 def radio(**props) = (:radio, **props) |
#radio_group(content = nil, **props) ⇒ Object
652 653 654 655 656 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 652 def radio_group(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:radiogroup, **mapped) end |
#radiogroup(content = nil, **props) ⇒ Object
657 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 657 def radiogroup(content = nil, **props) = radio_group(content, **props) |
#range_slider(**props) ⇒ Object
460 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 460 def (**props) = (:rangeslider, **props) |
#rangeslider(**props) ⇒ Object
461 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 461 def (**props) = (**props) |
#rect(**props) ⇒ Object
200 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 200 def rect(**props) = (:rect, **props) |
#reorderable_drag_handle(content = nil, **props) ⇒ Object
468 469 470 471 472 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 468 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
474 475 476 477 478 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 474 def reorderable_list_view(children = nil, **props) mapped = props.dup mapped[:children] = children unless children.nil? (:reorderablelistview, **mapped) end |
#reorderabledraghandle(content = nil, **props) ⇒ Object
473 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 473 def reorderabledraghandle(content = nil, **props) = reorderable_drag_handle(content, **props) |
#reorderablelistview(children = nil, **props) ⇒ Object
479 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 479 def reorderablelistview(children = nil, **props) = reorderable_list_view(children, **props) |
#responsive_row(children = nil, **props, &block) ⇒ Object
462 463 464 465 466 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 462 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
467 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 467 def responsiverow(children = nil, **props, &block) = responsive_row(children, **props, &block) |
#rich_attribution(attributions = nil, **props) ⇒ Object
297 298 299 300 301 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 297 def rich_attribution(attributions = nil, **props) mapped = props.dup mapped[:attributions] = attributions unless attributions.nil? (:richattribution, **mapped) end |
#richattribution(attributions = nil, **props) ⇒ Object
302 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 302 def richattribution(attributions = nil, **props) = rich_attribution(attributions, **props) |
#rive(src = nil, **props) ⇒ Object
814 815 816 817 818 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 814 def rive(src = nil, **props) mapped = props.dup mapped[:src] = src unless src.nil? (:rive, **mapped) end |
#rotated_box(content = nil, **props) ⇒ Object
640 641 642 643 644 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 640 def rotated_box(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:rotatedbox, **mapped) end |
#rotatedbox(content = nil, **props) ⇒ Object
645 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 645 def rotatedbox(content = nil, **props) = rotated_box(content, **props) |
#row(children = nil, **props, &block) ⇒ Object
74 75 76 77 78 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 74 def row(children = nil, **props, &block) mapped = props.dup mapped[:children] = children unless children.nil? (:row, **mapped, &block) end |
#ruflet_app(**props) ⇒ Object
34 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 34 def ruflet_app(**props) = (:ruflet_app, **props) |
#rufletapp(**props) ⇒ Object
35 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 35 def rufletapp(**props) = ruflet_app(**props) |
#safe_area(content = nil, **props) ⇒ Object
480 481 482 483 484 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 480 def safe_area(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:safearea, **mapped) end |
#safearea(content = nil, **props) ⇒ Object
485 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 485 def safearea(content = nil, **props) = safe_area(content, **props) |
#scatter_chart(**props) ⇒ Object
774 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 774 def scatter_chart(**props) = (:scatterchart, **props) |
#scatter_chart_spot(**props) ⇒ Object
776 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 776 def scatter_chart_spot(**props) = (:scatterchartspot, **props) |
#scatterchart(**props) ⇒ Object
775 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 775 def scatterchart(**props) = scatter_chart(**props) |
#scatterchartspot(**props) ⇒ Object
777 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 777 def scatterchartspot(**props) = scatter_chart_spot(**props) |
#screen_brightness(**props) ⇒ Object
117 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 117 def screen_brightness(**props) = build_service(:screen_brightness, **props) |
#screenshot(content = nil, **props) ⇒ Object
646 647 648 649 650 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 646 def screenshot(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:screenshot, **mapped) end |
#search_bar(children = nil, **props) ⇒ Object
503 504 505 506 507 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 503 def (children = nil, **props) mapped = props.dup mapped[:children] = children unless children.nil? (:searchbar, **mapped) end |
#searchbar(children = nil, **props) ⇒ Object
508 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 508 def (children = nil, **props) = (children, **props) |
#secure_storage(**props) ⇒ Object
118 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 118 def secure_storage(**props) = build_service(:secure_storage, **props) |
#segment(value = nil, **props) ⇒ Object
486 487 488 489 490 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 486 def segment(value = nil, **props) mapped = props.dup mapped[:value] = value unless value.nil? (:segment, **mapped) end |
#segmented_button(segments = nil, **props) ⇒ Object
491 492 493 494 495 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 491 def (segments = nil, **props) mapped = props.dup mapped[:segments] = segments unless segments.nil? (:segmentedbutton, **mapped) end |
#segmentedbutton(segments = nil, **props) ⇒ Object
496 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 496 def (segments = nil, **props) = (segments, **props) |
#selection_area(content = nil, **props) ⇒ Object
497 498 499 500 501 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 497 def selection_area(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:selectionarea, **mapped) end |
#selectionarea(content = nil, **props) ⇒ Object
502 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 502 def selectionarea(content = nil, **props) = selection_area(content, **props) |
#semantics(content = nil, **props) ⇒ Object
509 510 511 512 513 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 509 def semantics(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:semantics, **mapped) end |
#semantics_service(**props) ⇒ Object
119 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 119 def semantics_service(**props) = build_service(:semantics_service, **props) |
#service_registry(services = nil, **props) ⇒ Object
36 37 38 39 40 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 36 def service_registry(services = nil, **props) mapped = props.dup mapped[:services] = services unless services.nil? (:service_registry, **mapped) end |
#serviceregistry(services = nil, **props) ⇒ Object
41 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 41 def serviceregistry(services = nil, **props) = service_registry(services, **props) |
#shader_mask(content = nil, **props) ⇒ Object
162 163 164 165 166 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 162 def shader_mask(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:shadermask, **mapped) end |
#shadermask(content = nil, **props) ⇒ Object
167 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 167 def shadermask(content = nil, **props) = shader_mask(content, **props) |
#shadow(**props) ⇒ Object
202 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 202 def shadow(**props) = (:shadow, **props) |
#shake_detector(**props) ⇒ Object
120 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 120 def shake_detector(**props) = build_service(:shake_detector, **props) |
#share(**props) ⇒ Object
121 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 121 def share(**props) = build_service(:share, **props) |
#shared_preferences(**props) ⇒ Object
122 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 122 def shared_preferences(**props) = build_service(:shared_preferences, **props) |
#shimmer(content = nil, **props) ⇒ Object
168 169 170 171 172 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 168 def shimmer(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:shimmer, **mapped) end |
#simple_attribution(**props) ⇒ Object
293 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 293 def simple_attribution(**props) = (:simpleattribution, **props) |
#simpleattribution(**props) ⇒ Object
294 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 294 def simpleattribution(**props) = simple_attribution(**props) |
#slide_picker(**props) ⇒ Object
795 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 795 def (**props) = (:slide_picker, **props) |
#slidepicker(**props) ⇒ Object
796 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 796 def (**props) = (**props) |
#slider(**props) ⇒ Object
633 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 633 def (**props) = (:slider, **props) |
#snack_bar(content = nil, **props) ⇒ Object
660 661 662 663 664 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 660 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:snackbar, **mapped) end |
#snack_bar_action(label = nil, **props) ⇒ Object
666 667 668 669 670 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 666 def (label = nil, **props) mapped = props.dup mapped[:label] = label unless label.nil? (:snackbaraction, **mapped) end |
#snackbar(content = nil, **props) ⇒ Object
665 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 665 def (content = nil, **props) = (content, **props) |
#snackbaraction(label = nil, **props) ⇒ Object
671 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 671 def (label = nil, **props) = (label, **props) |
#spinkit(**variants) ⇒ Object
451 452 453 454 455 456 457 458 459 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 451 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
79 80 81 82 83 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 79 def stack(children = nil, **props, &block) mapped = props.dup mapped[:children] = children unless children.nil? (:stack, **mapped, &block) end |
#storage_paths(**props) ⇒ Object
123 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 123 def storage_paths(**props) = build_service(:storage_paths, **props) |
#submenu_button(children = nil, **props) ⇒ Object
339 340 341 342 343 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 339 def (children = nil, **props) mapped = props.dup mapped[:children] = children unless children.nil? (:submenubutton, **mapped) end |
#submenubutton(children = nil, **props) ⇒ Object
344 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 344 def (children = nil, **props) = (children, **props) |
#switch(**props) ⇒ Object
632 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 632 def switch(**props) = (:switch, **props) |
#tab(label = nil, **props, &block) ⇒ Object
710 711 712 713 714 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 710 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
716 717 718 719 720 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 716 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
722 723 724 725 726 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 722 def (children = nil, **props, &block) mapped = props.dup mapped[:children] = children unless children.nil? (:tabbarview, **mapped, &block) end |
#tabbar(tabs = nil, **props, &block) ⇒ Object
721 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 721 def (tabs = nil, **props, &block) = (tabs, **props, &block) |
#tabbarview(children = nil, **props, &block) ⇒ Object
727 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 727 def (children = nil, **props, &block) = (children, **props, &block) |
#tabs(content = nil, **props, &block) ⇒ Object
704 705 706 707 708 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 704 def tabs(content = nil, **props, &block) mapped = props.dup mapped[:content] = content unless content.nil? (:tabs, **mapped, &block) end |
#text(value = nil, **props) ⇒ Object
544 545 546 547 548 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 544 def text(value = nil, **props) mapped = props.dup mapped[:value] = value unless value.nil? (:text, **mapped) end |
#text_button(content = nil, **props) ⇒ Object
558 559 560 561 562 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 558 def (content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:textbutton, **mapped) end |
#text_field(value = nil, **props) ⇒ Object
625 626 627 628 629 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 625 def text_field(value = nil, **props) mapped = props.dup mapped[:value] = value unless value.nil? (:textfield, **mapped) end |
#text_source_attribution(text = nil, **props) ⇒ Object
309 310 311 312 313 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 309 def text_source_attribution(text = nil, **props) mapped = props.dup mapped[:text] = text unless text.nil? (:textsourceattribution, **mapped) end |
#text_span(text = nil, **props) ⇒ Object
173 174 175 176 177 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 173 def text_span(text = nil, **props) mapped = props.dup mapped[:text] = text unless text.nil? (:textspan, **mapped) end |
#textbutton(content = nil, **props) ⇒ Object
563 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 563 def (content = nil, **props) = (content, **props) |
#textfield(**props) ⇒ Object
630 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 630 def textfield(**props) = text_field(**props) |
#textsourceattribution(text = nil, **props) ⇒ Object
314 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 314 def textsourceattribution(text = nil, **props) = text_source_attribution(text, **props) |
#textspan(text = nil, **props) ⇒ Object
178 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 178 def textspan(text = nil, **props) = text_span(text, **props) |
#tile_layer(**props) ⇒ Object
243 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 243 def tile_layer(**props) = (:tilelayer, **props) |
#tilelayer(**props) ⇒ Object
244 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 244 def tilelayer(**props) = tile_layer(**props) |
#time_picker(**props) ⇒ Object
514 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 514 def time_picker(**props) = (:timepicker, **props) |
#timepicker(**props) ⇒ Object
515 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 515 def timepicker(**props) = time_picker(**props) |
#transparent_pointer(content = nil, **props) ⇒ Object
634 635 636 637 638 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 634 def transparent_pointer(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:transparentpointer, **mapped) end |
#transparentpointer(content = nil, **props) ⇒ Object
639 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 639 def transparentpointer(content = nil, **props) = transparent_pointer(content, **props) |
#url_launcher(**props) ⇒ Object
124 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 124 def url_launcher(**props) = build_service(:url_launcher, **props) |
#user_accelerometer(**props) ⇒ Object
125 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 125 def user_accelerometer(**props) = build_service(:user_accelerometer, **props) |
#vertical_divider(**props) ⇒ Object
346 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 346 def vertical_divider(**props) = (:verticaldivider, **props) |
#verticaldivider(**props) ⇒ Object
347 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 347 def verticaldivider(**props) = vertical_divider(**props) |
#video(**props) ⇒ Object
784 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 784 def video(**props) = (:video, **props) |
#view(children = nil, **props, &block) ⇒ Object
44 45 46 47 48 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 44 def view(children = nil, **props, &block) mapped = props.dup mapped[:controls] = children unless children.nil? (:view, **mapped, &block) end |
#wakelock(**props) ⇒ Object
126 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 126 def wakelock(**props) = build_service(:wakelock, **props) |
#web_view(**props) ⇒ Object
782 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 782 def web_view(**props) = (:webview, **props) |
#webview(**props) ⇒ Object
783 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 783 def webview(**props) = web_view(**props) |
#window(**props) ⇒ Object
42 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 42 def window(**props) = (:window, **props) |
#window_drag_area(content = nil, **props) ⇒ Object
348 349 350 351 352 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 348 def window_drag_area(content = nil, **props) mapped = props.dup mapped[:content] = content unless content.nil? (:windowdragarea, **mapped) end |
#windowdragarea(content = nil, **props) ⇒ Object
353 |
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 353 def windowdragarea(content = nil, **props) = window_drag_area(content, **props) |