Skip to content

WHorizontalRule

Mark Reeves edited this page Jan 4, 2018 · 7 revisions

WHorizontalRule is a component for adding a decorative divider between components.

HTML output

WHorizontalRule outputs a HTML hr Element which has in the flow content category and must not be added to any WComponent which may only contain phrasing content.

Using WHorizontalRule

In a word: don't.

WHorizontalRule is a separator. It is used only to separate content which cannot be separated by use of more appropriate grouping tools. If you wish to break up an application into meaningful sections it may be more appropriate to use WFieldSet, WPanel (especially those of type CHROME, ACTION or FEATURE) or WHeading.

WHorizontalRule must never be used to group form controls into semantic parts: WFieldSet should always be used to break sections of form controls into semantic parts.

Further Reading

Clone this wiki locally