양식의 필드를 변경했을 때 formotion 양식을 서버에 제출하고 싶습니다. 누군가가 변경 콜백 또는 이와 비슷한 것을 알고 있습니까?Rubymotion : 양식 변경시 자동으로 양식 작성 양식 제출
내 양식 :
class SettingsScreen < PM::FormotionScreen
title "Settings"
tab_bar_item title: "Settings", icon: 'settings'
def table_data
{
sections: [
{
title: "Settings",
rows: [
{
title: "Start Date",
key: :start_date,
type: :date,
format: :medium
}, {
title: "End Date",
key: :end_date,
type: :date,
format: :medium
}
]
}
]
}
end
def on_load
self.form.on_submit do |form|
p "submitting!"
end
end
end