| demos\outlook\tasks\tasks_content.sdf |
1 WidgetPane { 2 attributes { 3 {name: "toolbar_url"; value: "tasks_toolbar.sdf" } 4 {name: "action_menu_url"; value: "tasks_actions.sdf" } 5 } 6 widget { 7 Table { 8 name: "tasks_table" 9 selectionMode: "multiple" 10 quickFindSupport: "search_bar" 11 columns { 12 {width: "2ch!"; headerIcon: "resource:Sage.icon.pageTransparent" } 13 { 14 valueType: "array_type" 15 renderDetail: "icon_only" 16 width: "1.5ch!" 17 editable: "true" 18 headerIcon: "resource:Sage.icon.exclamation" 19 valueContext:<< 20 ArrayTypeInformation { 21 listItems { 22 { value: Low; icon: "resource:pim.icon.not_important" } 23 { value: Normal; icon: "resource:pim.icon.normal" } 24 { value: High; icon: "resource:pim.icon.important" } 25 } 26 }>> 27 } 28 {width: "1.5ch!"; headerIcon: "resource:Sage.icon.paperclip" } 29 {title: "Subject"; width: "25ch"; editable: "true" } 30 { 31 title: "Status" 32 valueType: "array_type" 33 editable: "true" 34 width: "10ch" 35 valueContext:<< 36 ArrayTypeInformation { 37 listItems { 38 { value: "Not Started" } 39 { value: "In Progress" } 40 { value: Completed } 41 { value: "Waiting on Someone Else" } 42 { value: Deferred } 43 } 44 }>> 45 } 46 { 47 title: "Due Date" 48 valueType: "date_type" 49 valueContext: "EEE, MM/dd/yyyy" 50 width: "12ch" 51 editable: "true" 52 } 53 { 54 title: "%Complete" 55 width: "8ch" 56 editable: "true" 57 horizontalAlign: "left" 58 valueType: "integer_type" 59 valueContext: "#" [ minimum="0", maximum="100" ] 60 } 61 {title: "Categories"; editable: "true";width: "8ch" } 62 } 63 scrollPane { 64 fixedColumnHeader { 65 /** 66 * Define another table as the fixed column header for this table. 67 * Hide the table header and inherit the columns from the parent table. 68 * Use a Label widget in the data to create a non selectable row with 69 * the look of a thin gradient line. 70 */ 71 Table { 72 borders: "none" 73 bounds-height: "1ln" 74 columnSpanningAllowed: "true" 75 gridLineType: "none" 76 autoSizeRowsToFit: "true" 77 inheritParentTableColumns: "true" 78 inheritParentTableStyle: "false" 79 showStandardColumnHeader: "false" 80 focusPainted: "true" 81 scrollPane { 82 horizontalScrollbar: "hidden" [adjPrefSizeForHidden="true"] 83 verticalScrollbar: "hidden" [adjPrefSizeForHidden="true"] 84 } 85 dataURL:<< 86 |||Click here to add a new task 87 {}[selectable=false]^{ value:<<EOF Label { horizontalAlign: full; bgColor: "control+5|control-10"; bounds { height: 3}; }EOF; valueType: widget_type; columnSpan: -1; } 88 >> [ inline="true", riSeparator="^" ] 89 } 90 } 91 } 92 dataURL:<< 93 { icon: "resource:pim.icon.tasks" }|||Get menu/toolbar switch working| 94 { icon: "resource:pim.icon.tasks" }|||Get table renderers/editors completed| 95 { icon: "resource:pim.icon.tasks" }|||Get drag and drop working| 96 >> [ inline="true" ] 97 } 98 } 99 } 100 101 102 103