View source | View content page | Page history | Printable version   

Projects:Style labels with Markdown/Technical Documentation

Introduction

The new enyo kind 'OB.UI.MarkdownLabel' it is a visual component that uses internally Markdown to display

Example

To use 'OB.UI.MarkdownLabel' is very simple, just set the 'content' property with a text with valid Markdown syntax.

For example the component:

enyo.kind({
  kind: 'OB.UI.MarkdownLabel',
  content: 
      '# Title\n' +
      '* One list element\n' +
      '* Other list element with *some* **formatting**.'
});

Is rendered this way:

MarkdownLabel.png

Markdown documentation

Retrieved from "http://wiki.openbravo.com/wiki/Projects:Style_labels_with_Markdown/Technical_Documentation"

This page has been accessed 587 times. This page was last modified on 4 October 2017, at 14:34. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.