Created
November 26, 2012 05:40
-
-
Save waseem/4146743 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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