Sha256: a84a3385204da07359ff804e7987e8c590f4df87ecabbc5dcf52c8d639cb15a7

Contents?: true

Size: 1.42 KB

Versions: 3

Compression:

Stored size: 1.42 KB

Contents

# frozen_string_literal: true

new({ method: :drag, type: :symbol, renderer: :html }) do |params|

  if params
    option = @drag[params]
    html.event(:drag, params, option)
  else
    html.event(:drag, :remove, true)
  end
end

new({ method: :drop, type: :symbol, renderer: :html }) do |params|
  if params
    option = @drop[params]
    html.event(:drop, params, option)
  else
    html.event(:drop, remove, true)
  end

end

new({ method: :touch, type: :integer, renderer: :html }) do |params|
  if params
    option = @touch[params]
    html.event(:touch, params, option)
  else
    html.event(:touch, :remove, true)
  end
end

new({ method: :over, type: :integer, renderer: :html }) do |params|
  if params
    option = @over[params]
    html.event(:over, params, option)
  else
    html.event(:over, :remove, true)
  end
end

new({ method: :keyboard, renderer: :html }) do |params|
  if params
    option = @keyboard[params]
    html.event(:keyboard, params, option)
  else
    html.event(:keyboard, :remove, true)
  end
end

new({ method: :play, renderer: :html }) do |params = true|
  option = @play[params]
  # html.currentTime(params, option) if params != true
  html.action(:play, params, option)
  # params
end

new({ method: :on, renderer: :html }) do |params|
  option = @on[params]

  html.on(params, option)
end

new({ method: :resize, renderer: :html }) do |params, user_bloc|
  option = @resize[params]
  html.resize(params, option)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
atome-0.5.7.6.5 lib/renderers/html/event.rb
atome-0.5.7.6.0 lib/renderers/html/event.rb
atome-0.5.7.5.9 lib/renderers/html/event.rb