java.lang.Object
de.agilecoders.wicket.jquery.CombinableConfig
de.agilecoders.wicket.jquery.AbstractConfig
de.agilecoders.wicket.extensions.markup.html.bootstrap.markdown.MarkdownConfig
All Implemented Interfaces:
de.agilecoders.wicket.jquery.Config, Serializable, IClusterable

public class MarkdownConfig extends de.agilecoders.wicket.jquery.AbstractConfig
Provides config information for the markdown editor
See Also:
  • Constructor Details

    • MarkdownConfig

      public MarkdownConfig()
  • Method Details

    • withAutofocus

      public MarkdownConfig withAutofocus(boolean autofocus)
      Parameters:
      autofocus - Indicates that editor will focused after instantiated. Default to false.
      Returns:
      current instance
    • withHideable

      public MarkdownConfig withHideable(boolean hideable)
      Parameters:
      hideable - If set to true then the editor will be hidden on blur event. Default to false.
      Returns:
      current instance
    • withWidth

      public MarkdownConfig withWidth(String width)
      Parameters:
      width - The editor width. Default to inherit. You could supply any CSS class (custom or Bootstrap one).
      Returns:
      current instance
    • withHeight

      public MarkdownConfig withHeight(String height)
      Parameters:
      height - The editor height. Default to inherit.
      Returns:
      current instance
    • withResize

      public MarkdownConfig withResize(MarkdownConfig.Resize resize)
      Parameters:
      resize - Option to disable or change the resize property, possible values none,both,horizontal,vertical. Default MarkdownConfig.Resize.none. If this option is enabled, the user will be able to resize the editor and preview screen.
      Returns:
      current instance
    • withIconLibrary

      public MarkdownConfig withIconLibrary(MarkdownConfig.IconLibrary iconLibrary)
      Parameters:
      iconLibrary - The icon library to use. Glyphicons (MarkdownConfig.IconLibrary.glyph) and Font Awesome (MarkdownConfig.IconLibrary.fa) are supported. In order to use Font Awesome properly, you'll need to include Font Awesome stylesheet yourself. Default to MarkdownConfig.IconLibrary.glyph
      Returns:
      current instance