Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% content_for('body') do %>
- <% view :view1 do %>
- <% view :detail_view, :outlet => true do %>
- <%= button_view :button_id,
- :title => 'Button Title',
- :action => 'MyValet.appController.ajaxRequest'
- %>
- <%= button_view :outlet => true,
- :title => "Cancel",
- :action => 'MyValet.modelController.discardChanges',
- :bind => {
- :enabled => 'MyValet.modelController.hasChanges'
- } %>
- <%= button_view :outlet => true,
- :title => "Save Changes", :default => true,
- :action => 'MyValet.modelController.commitChanges',
- :bind => {
- :enabled => "MyValet.modelController.hasChanges"
- } %>
- <% end %>
- <% end %>
- <%= container_view :pageContent %>
- <% scroll_view :name_of_scroll_view, :height => 400 do %>
- // content of scroll view
- <%= list_view :record_list,
- :content_value_key => 'name',
- :content_value_editable => true,
- :bind => {
- :content => "MyValet.modelController.arrangedObjects",
- :selection => "MyValet.modelController.selection"
- } %>
- <% end %>
- </div>
- </div>
- <% end %>
Add Comment
Please, Sign In to add comment