Guest User

Untitled

a guest
Feb 19th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. <% content_for('body') do %>
  2. <% view :view1 do %>
  3. <% view :detail_view, :outlet => true do %>
  4.  
  5. <%= button_view :button_id,
  6. :title => 'Button Title',
  7. :action => 'MyValet.appController.ajaxRequest'
  8. %>
  9.  
  10. <%= button_view :outlet => true,
  11. :title => "Cancel",
  12. :action => 'MyValet.modelController.discardChanges',
  13. :bind => {
  14. :enabled => 'MyValet.modelController.hasChanges'
  15. } %>
  16. <%= button_view :outlet => true,
  17. :title => "Save Changes", :default => true,
  18. :action => 'MyValet.modelController.commitChanges',
  19. :bind => {
  20. :enabled => "MyValet.modelController.hasChanges"
  21. } %>
  22.  
  23. <% end %>
  24. <% end %>
  25.  
  26. <%= container_view :pageContent %>
  27.  
  28. <% scroll_view :name_of_scroll_view, :height => 400 do %>
  29.  
  30. // content of scroll view
  31. <%= list_view :record_list,
  32. :content_value_key => 'name',
  33. :content_value_editable => true,
  34. :bind => {
  35. :content => "MyValet.modelController.arrangedObjects",
  36. :selection => "MyValet.modelController.selection"
  37. } %>
  38.  
  39. <% end %>
  40.  
  41. </div>
  42. </div>
  43. <% end %>
Add Comment
Please, Sign In to add comment