Show the button beside the selected line, clear of its end handle. A single line can also use the space just below its middle. Otherwise, keep the larger clearance above or below for the native menu.
A long selection, which can run past the edges of the screen, leaves room for neither. The button then goes in the middle of the screen, away from the handles and text menu at the selection's ends. Pinning it to the top of the screen put it under the header, where a tap landed on the header instead.
Creates a view out of virtual elements.
The
Fragmentclass represents a chunk of DOM that is rendered once with Mithril and then takes over control of its own DOM and lifecycle.This is very similar to the
Componentwrapper class, but is used for more fine-grained control over the rendering and display of some significant chunks of the DOM. In contrast to components, fragments do not offer Mithril's lifecycle hooks.Use this when you want to enjoy the benefits of JSX / VDOM for initial rendering, combined with small helper methods that then make updates to that DOM directly, instead of fully redrawing everything through Mithril.
This should only be used when necessary, and only with
m.render. If you are unsure whether you need this orComponent, you probably needComponent`.