221V 1 год назад
Родитель
Сommit
7805ca00c9

+ 5 - 0
CHANGELOG.md

@@ -16,6 +16,11 @@
 | ```<<"hidden">>``` | ```true``` | ```"hidden"``` |
 | ```<<"translate">>``` | ```true``` | ```"yes"``` |
 | ```<<"translate">>``` | ```false``` | ```"no"``` |
+| ```<<"type">>``` | ```command``` | ```"command"``` |
+| ```<<"type">>``` | ```radio``` | ```"radio"``` |
+| ```<<"type">>``` | ```checkbox``` | ```"checkbox"``` |
+| ```<<"type">>``` | ```toolbar``` | ```"toolbar"``` |
+| ```<<"type">>``` | ```context``` | ```"context"``` |
 
 
 ##### 6.6.2-erl19

+ 3 - 3
src/elements/interactive/element_command.erl

@@ -76,9 +76,9 @@ render_element(Record) ->
     {<<"radiogroup">>, Record#command.radiogroup},
     {<<"type">>,
        case Record#command.type of
-         "command" -> "command";
-         "radio" -> "radio";
-         "checkbox" -> "checkbox";
+         command -> "command";
+         radio -> "radio";
+         checkbox -> "checkbox";
          _ -> []
        end} | Record#command.data_fields
   ],

+ 2 - 2
src/elements/interactive/element_menu.erl

@@ -68,8 +68,8 @@ render_element(Record) ->
     {<<"label">>, Record#menu.label},
     {<<"type">>,
        case Record#menu.type of
-         "toolbar" -> "toolbar";
-         "context" -> "context";
+         toolbar -> "toolbar";
+         context -> "context";
          _ -> []
        end} | Record#menu.data_fields
   ],