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

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) = build_widget(: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?
  build_widget(: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 app_bar(**props) = build_widget(:appbar, **props)

#appbar(**props) ⇒ Object



700
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 700

def appbar(**props) = app_bar(**props)

#arc(**props) ⇒ Object



194
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 194

def arc(**props) = build_widget(: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?
  build_widget(: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?
  build_widget(: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?
  build_widget(: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?
  build_widget(:badge, **mapped)
end


532
533
534
535
536
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 532

def banner(content = nil, **props)
  mapped = props.dup
  mapped[:content] = content unless content.nil?
  build_widget(:banner, **mapped)
end


797
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 797

def banner_ad(**props) = build_widget(:banner_ad, **props)

#bannerad(**props) ⇒ Object



798
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 798

def bannerad(**props) = banner_ad(**props)

#bar_chart(**props) ⇒ Object



744
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 744

def bar_chart(**props) = build_widget(:barchart, **props)

#bar_chart_group(**props) ⇒ Object



746
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 746

def bar_chart_group(**props) = build_widget(:barchartgroup, **props)

#bar_chart_rod(**props) ⇒ Object



748
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 748

def bar_chart_rod(**props) = build_widget(:barchartrod, **props)

#bar_chart_rod_stack_item(**props) ⇒ Object



750
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 750

def bar_chart_rod_stack_item(**props) = build_widget(:barchartrodstackitem, **props)

#barchart(**props) ⇒ Object



745
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 745

def barchart(**props) = bar_chart(**props)

#barchartgroup(**props) ⇒ Object



747
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 747

def barchartgroup(**props) = bar_chart_group(**props)

#barchartrod(**props) ⇒ Object



749
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 749

def barchartrod(**props) = bar_chart_rod(**props)

#barchartrodstackitem(**props) ⇒ Object



751
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 751

def barchartrodstackitem(**props) = bar_chart_rod_stack_item(**props)

#barometer(**props) ⇒ Object



105
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 105

def barometer(**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) = build_widget(: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) = build_widget(: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 bottom_app_bar(content = nil, **props)
  mapped = props.dup
  mapped[:content] = content unless content.nil?
  build_widget(: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?
  build_widget(:bottomsheet, **mapped)
end

#bottomappbar(content = nil, **props) ⇒ Object



542
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 542

def bottomappbar(content = nil, **props) = bottom_app_bar(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 browser_context_menu(**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 button(content = nil, **props)
  mapped = props.dup
  mapped[:content] = content unless content.nil?
  build_widget(:button, **mapped)
end

#camera(**props) ⇒ Object



108
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 108

def camera(**props) = build_widget(:camera, **props)

#candlestick_chart(**props) ⇒ Object



762
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 762

def candlestick_chart(**props) = build_widget(: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) = build_widget(: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?
  build_widget(: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?
  build_widget(: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

  build_widget(: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) = build_widget(: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) = build_widget(: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) = build_widget(: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?
  build_widget(:chip, **mapped)
end

#circle(**props) ⇒ Object



193
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 193

def circle(**props) = build_widget(: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?
  build_widget(: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?
  build_widget(: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)
  build_widget(: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?
  build_widget(: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) = build_widget(:color, **props)

#color_picker(**props) ⇒ Object



787
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 787

def color_picker(**props) = build_widget(: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?
  build_widget(: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) = build_widget(: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 context_menu(content = nil, **props)
  mapped = props.dup
  mapped[:content] = content unless content.nil?
  build_widget(:contextmenu, **mapped)
end

#contextmenu(content = nil, **props) ⇒ Object



145
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 145

def contextmenu(content = nil, **props) = context_menu(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?
  build_widget(: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?
  build_widget(: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?
  build_widget(: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?
  build_widget(: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?
  build_widget(: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?
  build_widget(: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?
  build_widget(: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) = build_widget(: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) = build_widget(: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?
  build_widget(: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?
  build_widget(:dismissible, **mapped)
end

#divider(**props) ⇒ Object



345
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 345

def divider(**props) = build_widget(: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?
  build_widget(: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?
  build_widget(: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)


419
420
421
422
423
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 419

def dropdown(options = nil, **props)
  mapped = props.dup
  mapped[:options] = options unless options.nil?
  build_widget(:dropdown, **mapped)
end


430
431
432
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 430

def dropdown_m2(options = nil, **props)
  dropdown(options, **props)
end


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?
  build_widget(:dropdownoption, **mapped)
end


433
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 433

def dropdownm2(options = nil, **props) = dropdown_m2(options, **props)


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 elevated_button(content = nil, **props) = button(content, **props)

#expansion_panel(**props) ⇒ Object



411
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 411

def expansion_panel(**props) = build_widget(: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?
  build_widget(: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?
  build_widget(: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)
  build_widget(: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) = build_widget(: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 filled_button(content = nil, **props)
  mapped = props.dup
  mapped[:content] = content unless content.nil?
  build_widget(: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 filled_icon_button(icon = nil, **props)
  mapped = props.dup
  mapped[:icon] = icon unless icon.nil?
  build_widget(: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 filled_tonal_button(content = nil, **props)
  mapped = props.dup
  mapped[:content] = content unless content.nil?
  build_widget(: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 filled_tonal_icon_button(icon = nil, **props)
  mapped = props.dup
  mapped[:icon] = icon unless icon.nil?
  build_widget(:filledtonaliconbutton, **mapped)
end

#filledbutton(content = nil, **props) ⇒ Object



569
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 569

def filledbutton(content = nil, **props) = filled_button(content, **props)

#fillediconbutton(icon = nil, **props) ⇒ Object



575
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 575

def fillediconbutton(icon = nil, **props) = filled_icon_button(icon, **props)

#filledtonalbutton(content = nil, **props) ⇒ Object



581
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 581

def filledtonalbutton(content = nil, **props) = filled_tonal_button(content, **props)

#filledtonaliconbutton(icon = nil, **props) ⇒ Object



587
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 587

def filledtonaliconbutton(icon = nil, **props) = filled_tonal_icon_button(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 floating_action_button(**props) = build_widget(:floatingactionbutton, **props)

#floatingactionbutton(**props) ⇒ Object



703
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 703

def floatingactionbutton(**props) = floating_action_button(**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) = build_widget(: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?
  build_widget(: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?
  build_widget(: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) = build_widget(: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?
  build_widget(: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_button(icon = nil, **props)
  mapped = props.dup
  mapped[:icon] = icon unless icon.nil?
  build_widget(:iconbutton, **mapped)
end

#iconbutton(icon = nil, **props) ⇒ Object



606
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 606

def iconbutton(icon = nil, **props) = icon_button(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?
  build_widget(: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?
  build_widget(: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?
  build_widget(: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) = build_widget(: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?
  build_widget(: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) = build_widget(:line, **props)

#line_chart(**props) ⇒ Object



752
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 752

def line_chart(**props) = build_widget(: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) = build_widget(: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) = build_widget(: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) = build_widget(: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?
  build_widget(: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?
  build_widget(: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?
  build_widget(: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) = build_widget(: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?
  build_widget(: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?
  build_widget(: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?
  build_widget(: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) = build_widget(: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)


321
322
323
324
325
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 321

def menu_bar(children = nil, **props)
  mapped = props.dup
  mapped[:children] = children unless children.nil?
  build_widget(:menubar, **mapped)
end


327
328
329
330
331
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 327

def menu_item_button(content = nil, **props)
  mapped = props.dup
  mapped[:content] = content unless content.nil?
  build_widget(:menuitembutton, **mapped)
end


326
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 326

def menubar(children = nil, **props) = menu_bar(children, **props)


332
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 332

def menuitembutton(content = nil, **props) = menu_item_button(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?
  build_widget(: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) = build_widget(: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) = build_widget(: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)


728
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 728

def navigation_bar(**props, &block) = build_widget(:navigationbar, **props, &block)


730
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 730

def navigation_bar_destination(**props, &block) = build_widget(:navigationbardestination, **props, &block)


736
737
738
739
740
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 736

def navigation_drawer(children = nil, **props)
  mapped = props.dup
  mapped[:children] = children unless children.nil?
  build_widget(:navigationdrawer, **mapped)
end


742
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 742

def navigation_drawer_destination(**props) = build_widget(:navigationdrawerdestination, **props)


732
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 732

def navigation_rail(**props, &block) = build_widget(:navigationrail, **props, &block)


734
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 734

def navigation_rail_destination(**props, &block) = build_widget(:navigationraildestination, **props, &block)


729
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 729

def navigationbar(**props, &block) = navigation_bar(**props, &block)


731
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 731

def navigationbardestination(**props, &block) = navigation_bar_destination(**props, &block)


741
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 741

def navigationdrawer(children = nil, **props) = navigation_drawer(children, **props)


743
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 743

def navigationdrawerdestination(**props) = navigation_drawer_destination(**props)


733
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 733

def navigationrail(**props, &block) = navigation_rail(**props, &block)


735
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 735

def navigationraildestination(**props, &block) = navigation_rail_destination(**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?
  build_widget(: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 outlined_button(content = nil, **props)
  mapped = props.dup
  mapped[:content] = content unless content.nil?
  build_widget(: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 outlined_icon_button(icon = nil, **props)
  mapped = props.dup
  mapped[:icon] = icon unless icon.nil?
  build_widget(:outlinediconbutton, **mapped)
end

#outlinedbutton(content = nil, **props) ⇒ Object



593
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 593

def outlinedbutton(content = nil, **props) = outlined_button(content, **props)

#outlinediconbutton(icon = nil, **props) ⇒ Object



599
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 599

def outlinediconbutton(icon = nil, **props) = outlined_icon_button(icon, **props)

#oval(**props) ⇒ Object



198
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 198

def oval(**props) = build_widget(: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 overlay(children = nil, **props)
  mapped = props.dup
  mapped[:controls] = children unless children.nil?
  build_widget(: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?
  build_widget(: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?
  build_widget(: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) = build_widget(: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 permission_handler(**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) = build_widget(: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) = build_widget(: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?
  build_widget(:placeholder, **mapped)
end

#points(**props) ⇒ Object



199
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 199

def points(**props) = build_widget(: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?
  build_widget(: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)
  build_widget(: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?
  build_widget(: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)
  build_widget(: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)


613
614
615
616
617
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 613

def popup_menu_button(items = nil, **props)
  mapped = props.dup
  mapped[:items] = items unless items.nil?
  build_widget(:popupmenubutton, **mapped)
end


619
620
621
622
623
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 619

def popup_menu_item(content = nil, **props)
  mapped = props.dup
  mapped[:content] = content unless content.nil?
  build_widget(:popupmenuitem, **mapped)
end

#popupmenubutton(items = nil, **props) ⇒ Object



618
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 618

def popupmenubutton(items = nil, **props) = popup_menu_button(items, **props)

#popupmenuitem(content = nil, **props) ⇒ Object



624
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 624

def popupmenuitem(content = nil, **props) = popup_menu_item(content, **props)

#progress_bar(**props) ⇒ Object



434
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 434

def progress_bar(**props) = build_widget(:progressbar, **props)

#progress_ring(**props) ⇒ Object



447
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 447

def progress_ring(**props) = build_widget(:progressring, **props)

#progressbar(**props) ⇒ Object



435
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 435

def progressbar(**props) = progress_bar(**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) = build_widget(: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) = build_widget(: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) = build_widget(: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) = build_widget(: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) = build_widget(: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?
  build_widget(: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 range_slider(**props) = build_widget(:rangeslider, **props)

#rangeslider(**props) ⇒ Object



461
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 461

def rangeslider(**props) = range_slider(**props)

#rect(**props) ⇒ Object



200
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 200

def rect(**props) = build_widget(: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?
  build_widget(: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?
  build_widget(: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?
  build_widget(: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?
  build_widget(: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?
  build_widget(: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?
  build_widget(: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?
  build_widget(: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) = build_widget(: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?
  build_widget(: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) = build_widget(: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) = build_widget(: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?
  build_widget(: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 search_bar(children = nil, **props)
  mapped = props.dup
  mapped[:children] = children unless children.nil?
  build_widget(:searchbar, **mapped)
end

#searchbar(children = nil, **props) ⇒ Object



508
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 508

def searchbar(children = nil, **props) = search_bar(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?
  build_widget(: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 segmented_button(segments = nil, **props)
  mapped = props.dup
  mapped[:segments] = segments unless segments.nil?
  build_widget(:segmentedbutton, **mapped)
end

#segmentedbutton(segments = nil, **props) ⇒ Object



496
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 496

def segmentedbutton(segments = nil, **props) = segmented_button(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?
  build_widget(: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?
  build_widget(: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?
  build_widget(: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?
  build_widget(: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) = build_widget(: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?
  build_widget(:shimmer, **mapped)
end

#simple_attribution(**props) ⇒ Object



293
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 293

def simple_attribution(**props) = build_widget(: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 slide_picker(**props) = build_widget(:slide_picker, **props)

#slidepicker(**props) ⇒ Object



796
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 796

def slidepicker(**props) = slide_picker(**props)

#slider(**props) ⇒ Object



633
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 633

def slider(**props) = build_widget(: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 snack_bar(content = nil, **props)
  mapped = props.dup
  mapped[:content] = content unless content.nil?
  build_widget(: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 snack_bar_action(label = nil, **props)
  mapped = props.dup
  mapped[:label] = label unless label.nil?
  build_widget(:snackbaraction, **mapped)
end

#snackbar(content = nil, **props) ⇒ Object



665
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 665

def snackbar(content = nil, **props) = snack_bar(content, **props)

#snackbaraction(label = nil, **props) ⇒ Object



671
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 671

def snackbaraction(label = nil, **props) = snack_bar_action(label, **props)

#spinkit(**variants) ⇒ Object

Raises:

  • (ArgumentError)


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, options = selected.first
  raise ArgumentError, "spinkit variant options must be a Hash" unless options.is_a?(Hash)

  build_widget(:spinkit, variant: variant.to_s, **options)
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?
  build_widget(: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)


339
340
341
342
343
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 339

def submenu_button(children = nil, **props)
  mapped = props.dup
  mapped[:children] = children unless children.nil?
  build_widget(:submenubutton, **mapped)
end


344
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 344

def submenubutton(children = nil, **props) = submenu_button(children, **props)

#switch(**props) ⇒ Object



632
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 632

def switch(**props) = build_widget(: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?
  build_widget(: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 tab_bar(tabs = nil, **props, &block)
  mapped = props.dup
  mapped[:tabs] = tabs unless tabs.nil?
  build_widget(: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 tab_bar_view(children = nil, **props, &block)
  mapped = props.dup
  mapped[:children] = children unless children.nil?
  build_widget(:tabbarview, **mapped, &block)
end

#tabbar(tabs = nil, **props, &block) ⇒ Object



721
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 721

def tabbar(tabs = nil, **props, &block) = tab_bar(tabs, **props, &block)

#tabbarview(children = nil, **props, &block) ⇒ Object



727
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 727

def tabbarview(children = nil, **props, &block) = tab_bar_view(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?
  build_widget(: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?
  build_widget(: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 text_button(content = nil, **props)
  mapped = props.dup
  mapped[:content] = content unless content.nil?
  build_widget(: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?
  build_widget(: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?
  build_widget(: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?
  build_widget(:textspan, **mapped)
end

#textbutton(content = nil, **props) ⇒ Object



563
# File 'lib/ruflet_ui/ruflet/ui/material_control_methods.rb', line 563

def textbutton(content = nil, **props) = text_button(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) = build_widget(: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) = build_widget(: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?
  build_widget(: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) = build_widget(: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) = build_widget(: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?
  build_widget(: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) = build_widget(: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) = build_widget(: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?
  build_widget(: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)