Skip to content

Instantly share code, notes, and snippets.

@waseem
Created November 26, 2012 05:40
Show Gist options
  • Select an option

  • Save waseem/4146743 to your computer and use it in GitHub Desktop.

Select an option

Save waseem/4146743 to your computer and use it in GitHub Desktop.
formOptions: ->
on_touch_val = ''
if @widget.video_id?
on_touch_val = 'Show video'
asset_id = @widget.video_id
else if @widget.audio_id?
on_touch_val = 'Play sound'
asset_id_val = @widget.audio_id
data: _.extend(@widget, { on_touch: on_touch_val, asset_id: asset_id_val })
schema:
on_touch:
type: 'Select'
options: ['', 'Show video', 'Play sound']
title: "On touch"
asset_id:
type: 'Select'
options: []
title: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment