Browse Source

fix element_panel

5HT 8 years ago
parent
commit
4d6fbf931f
1 changed files with 13 additions and 0 deletions
  1. 13 0
      src/elements/element_panel.erl

+ 13 - 0
src/elements/element_panel.erl

@@ -0,0 +1,13 @@
+-module(element_panel).
+-author('Maxim Sokhatsky').
+-include("nitro.hrl").
+-compile(export_all).
+
+render_element(Record) ->
+   wf_tags:emit_tag(<<"div">>, nitro:render(Record#panel.body),
+     lists:append([
+       [{<<"id">>,   Record#panel.id},
+       {<<"class">>, Record#panel.class},
+       {<<"style">>, Record#panel.style}],
+       Record#panel.data_fields,
+       Record#panel.aria_states])).