Class: PandaCms::EditorJs::Blocks::List
- Defined in:
- app/lib/panda_cms/editor_js/blocks/list.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from PandaCms::EditorJs::Blocks::Base
Instance Method Details
#render ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/lib/panda_cms/editor_js/blocks/list.rb', line 5 def render list_type = (data["style"] == "ordered") ? "ol" : "ul" html_safe( "<#{list_type}>" \ "#{render_items(data["items"])}" \ "</#{list_type}>" ) end |