lib/renderers/html/material.rb in atome-0.5.7.0.3 vs lib/renderers/html/material.rb in atome-0.5.7.0.4
- old
+ new
@@ -4,10 +4,16 @@
html.overflow(params, bloc)
end
new({ method: :gradient, renderer: :html, type: :hash })
+# new({ method: :remove, renderer: :html, type: :hash }) do |params|
+# # alert "===> #{params}"
+# # html.table_remove(params)
+# html.remove(params)
+# end
+
new({ method: :remove, renderer: :html, type: :string }) do |object_id_to_remove, bloc|
if object_id_to_remove.instance_of? Hash
object_id_to_remove.each do |particle, value|
case particle
@@ -35,9 +41,15 @@
apply(@apply)
end
when :shadow
html.style("boxShadow", 'none')
html.style("filter", 'none')
+ @apply.delete(object_id_to_remove)
+ apply(@apply)
+ when :border
+ # alert :poipoipoipoipo
+ html.style("border", 'none')
+ # html.style("filter", 'none')
@apply.delete(object_id_to_remove)
apply(@apply)
when :paint
atome_to_remove = grab(object_id_to_remove)
atome_to_remove.gradient.each do |color_id|
\ No newline at end of file