Move project to wsf_js_widget
This commit is contained in:
41
library/server/wsf_js_widget/grid/wsf_grid_column.e
Normal file
41
library/server/wsf_js_widget/grid/wsf_grid_column.e
Normal file
@@ -0,0 +1,41 @@
|
||||
note
|
||||
description: "Summary description for {WSF_GRID_COLUMN}."
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class
|
||||
WSF_GRID_COLUMN
|
||||
|
||||
create
|
||||
make
|
||||
|
||||
feature {NONE}
|
||||
|
||||
make (a_header, a_field: STRING)
|
||||
do
|
||||
header := a_header
|
||||
field_name := a_field
|
||||
sorting_name := a_field
|
||||
end
|
||||
|
||||
feature
|
||||
|
||||
header: STRING
|
||||
|
||||
sortable: BOOLEAN
|
||||
|
||||
sorting_name: STRING
|
||||
|
||||
field_name: STRING
|
||||
|
||||
render_column (e: WSF_ENTITY): STRING
|
||||
do
|
||||
if attached e.item (field_name) as data then
|
||||
Result := data.out
|
||||
else
|
||||
Result := "[VOID]"
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user