[xwiki-users] Formatting Blocks
Hi, I had a question regarding styling Blocks (ParagraphBlock, TextBlock, etc). I noticed in the documentation of the code (https://github.com/xwiki/xwiki-rendering/blob/master/xwiki-rendering-api/src...) that we could use the parameters map; however, it does not seem to be working. I've tried to find more documentation or use cases/examples online with no luck. Could someone provide more context on this? Thank you! -- View this message in context: http://xwiki.475771.n2.nabble.com/Formatting-Blocks-tp7598906.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Andrew,
On 10 Apr 2016, at 22:18, Andrew Kuang <[email protected]> wrote:
Hi, I had a question regarding styling Blocks (ParagraphBlock, TextBlock, etc). I noticed in the documentation of the code (https://github.com/xwiki/xwiki-rendering/blob/master/xwiki-rendering-api/src...) that we could use the parameters map; however, it does not seem to be working. I've tried to find more documentation or use cases/examples online with no luck. Could someone provide more context on this? Thank you!
Yes, any Block can have parameters. How they are interpreted depend on the Renderer used. You can check the XWiki Syntax 2.1 Renderer for example. For example the beginFormat() method which corresponds to the event sent at the beginning of a FormatBlock does this: https://github.com/xwiki/xwiki-rendering/blob/2629b41a185487f508aeb42790ece0... Thanks -Vincent
View this message in context: http://xwiki.475771.n2.nabble.com/Formatting-Blocks-tp7598906.html
participants (2)
-
Andrew Kuang -
Vincent Massol