Added ability to form element to get value (for convenience/completion)

This commit is contained in:
severin
2014-01-10 15:32:05 +01:00
parent 5dd8a83081
commit 2fb0d73439

View File

@@ -56,7 +56,7 @@ feature {NONE} -- Initialization
error := "" error := ""
end end
feature feature -- Modify
set_label_width (w: INTEGER) set_label_width (w: INTEGER)
-- Set the label span (a value between 1 and 12 to specify the bootstrap column span or 0 for not displaying the label) -- Set the label span (a value between 1 and 12 to specify the bootstrap column span or 0 for not displaying the label)
@@ -64,6 +64,13 @@ feature
label_width := w label_width := w
end end
feature -- Access
value: G
do
Result := value_control.value
end
feature {WSF_PAGE_CONTROL, WSF_CONTROL} -- State management feature {WSF_PAGE_CONTROL, WSF_CONTROL} -- State management
load_state (new_states: JSON_OBJECT) load_state (new_states: JSON_OBJECT)
@@ -184,7 +191,7 @@ feature -- Validation
local local
current_value: G current_value: G
do do
current_value := value_control.value current_value := value
is_valid := True is_valid := True
across across
validators as c validators as c