lib/ProMotion/screens/_tables/table_data.rb in ProMotion-0.7.3 vs lib/ProMotion/screens/_tables/table_data.rb in ProMotion-0.7.4
- old
+ new
@@ -100,12 +100,14 @@
cell_class: :cellClass,
masks_to_bounds: :masksToBounds,
background_color: :backgroundColor,
selection_style: :selectionStyle,
cell_class_attributes: :cellClassAttributes,
- accessory_view: :accessoryView,
+ accessory: :accessoryView,
+ accessory: :accessory_view,
accessory_type: :accessoryType,
+ accessory_action: :accessoryAction,
accessory_checked: :accessoryDefault,
remote_image: :remoteImage,
subviews: :subViews
}
@@ -115,16 +117,16 @@
data_cell[:layer][:masks_to_bounds] = data_cell[:masks_to_bounds] # TODO: Deprecate and then remove this.
end
mappings.each_pair do |n, old|
if data_cell[old]
- warn "[DEPRECATION] `:#{old}` is deprecated in TableScreens. Use `:#{n}`"
+ PM.logger.deprecated "`:#{old}` is deprecated in TableScreens. Use `:#{n}`"
data_cell[n] = data_cell[old]
end
end
if data_cell[:styles] && data_cell[:styles][:textLabel]
- warn "[DEPRECATION] `:textLabel` is deprecated in TableScreens. Use `:label`"
+ PM.logger.deprecated "`:textLabel` is deprecated in TableScreens. Use `:label`"
data_cell[:styles][:label] = data_cell[:styles][:textLabel]
end
data_cell
end