Module wicket.bootstrap.extensions
Class MarkdownConfig
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwithAutofocus(boolean autofocus) withHeight(String height) withHideable(boolean hideable) withIconLibrary(MarkdownConfig.IconLibrary iconLibrary) withResize(MarkdownConfig.Resize resize) Methods inherited from class de.agilecoders.wicket.jquery.AbstractConfig
all, contains, get, getString, isEmpty, newKey, put, remove, toJsonString, wrapMethods inherited from class de.agilecoders.wicket.jquery.CombinableConfig
combine, withFallback
-
Constructor Details
-
MarkdownConfig
public MarkdownConfig()
-
-
Method Details
-
withAutofocus
- Parameters:
autofocus- Indicates that editor will focused after instantiated. Default to false.- Returns:
- current instance
-
withHideable
- Parameters:
hideable- If set to true then the editor will be hidden on blur event. Default to false.- Returns:
- current instance
-
withWidth
- Parameters:
width- The editor width. Default to inherit. You could supply any CSS class (custom or Bootstrap one).- Returns:
- current instance
-
withHeight
- Parameters:
height- The editor height. Default to inherit.- Returns:
- current instance
-
withResize
- Parameters:
resize- Option to disable or change the resize property, possible values none,both,horizontal,vertical. DefaultMarkdownConfig.Resize.none. If this option is enabled, the user will be able to resize the editor and preview screen.- Returns:
- current instance
-
withIconLibrary
- 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 toMarkdownConfig.IconLibrary.glyph- Returns:
- current instance
-