Skip to content

Instantly share code, notes, and snippets.

View mauritslamers's full-sized avatar

Maurits Lamers mauritslamers

  • Den Haag, Netherlands
View GitHub Profile
<% # ========================================================================
# SC.ListView Unit Test
# ========================================================================
%>
<% content_for('final') do %>
<script>
// create some item data...
[
{ guid: '1001', name: 'item one' },
nil
~ PROXY: 200 /~maurits/sproutcore_orion/aeexam/list -> http://localhost:80/~maurits/sproutcore_orion/aeexam/list?order=id
X-Powered-By: PHP/5.2.4
Content-Type: text/html
Server: Apache/1.3.41 (Darwin) PHP/5.2.4
Date: Sun, 05 Oct 2008 23:59:57 GMT
~ Started request handling: Mon Oct 06 01:59:57 +0200 2008
~ Params: {"action"=>"main", "order"=>"id", "controller"=>"sprout_core_bundle_controller_0"}
~ {:dispatch_time=>0.013341, :after_filters_time=>1.2e-05, :action_time=>0.012994, :before_filters_time=>8.0e-06}
resourceURL: "~maurits/sproutcore_orion/modelname"
<%= container_view :my_container_view,
:bind => {
:content => 'myApp.containerViewController.property'
}
%>
<% content_for('body') do %>
<% split_view :workspace do %>
<% scroll_view :orders_scrool, :max_thickness => 400,
:min_thickness => 100 do %>
<%= list_view :orders,
:content_value_key => 'orderer',
:content_value_editable => true,
:bind => {
// ==========================================================================
// Admissionexam.CheckBoxListView
// ==========================================================================
require('core');
/** @class
(Document Your View Here)
{ guid: 1000,
type: 'AEAdvice',
name: 'Over de hele linie niet sterk genoeg',
group: 'Afgewezen',
year: '2008'
},
{ guid: 1001,
type: 'AEAdvice',
name: 'Productioneel en technologisch niet ver genoeg ontwikkeld',
// ==========================================================================
// Kitchen.DispatchController
// ==========================================================================
require('core');
/** @class
(Document Your View Here)
<% popup_button_view :popup_test, :title => 'TestMenuPopup' do %>
<% popup_menu_view :popup_test_menu, :paneType => 'menu' do %>
<%= menu_item_view :menu_item_one, :label => 'test1' %>
<%= menu_item_view :menu_item_two, :label => 'test2' %>
<% end %>
<% end %>
// ==========================================================================
// Admissionexam.ExamFormController
// ==========================================================================
require('core');
/** @class
(Document Your View Here)