| Copyright | (C) 2016-2026 David M. Johnson |
|---|---|
| License | BSD3-style (see the file LICENSE) |
| Maintainer | David M. Johnson <code@dmj.io> |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Miso.Mathml.Property
Description
Overview
Miso.Mathml.Property provides Attribute smart constructors
for
MathML attributes.
They are used alongside the element constructors from Miso.Mathml.Element.
The module is re-exported by Miso.Mathml.
Quick start
import Miso.Mathml.Element import Miso.Mathml.Property styledFrac ::Viewmodel action styledFrac =math_[display_"block" ] [mfrac_[linethickness_"2px" ] [mn_[mathvariant_"bold" ] [text"1" ] ,mn_[] [text"3" ] ] ]
Attribute groups
- Global MathML attributes:
dir_,displaystyle_,scriptlevel_,id_,href_,mathbackground_,mathcolor_,mathsize_,mathvariant_ - Layout:
display_,height_,width_,depth_,voffset_,lspace_,rspace_,linethickness_,minsize_,maxsize_ - Table:
align_,rowalign_,rowlines_,rowspacing_,rowspan_,columnalign_,columnlines_,columnspacing_,columnspan_ - Operator flags (boolean):
accent_,accentunder_,fence_,separator_,stretchy_,symmetric_,movablelimits_ - Frame:
frame_,framespacing_ - Grouping:
open_,close_,notation_
For full semantics of each attribute consult the MDN MathML attribute reference.
See also
- Miso.Mathml.Element — MathML element constructors
- Miso.Mathml — re-export hub for the full MathML DSL
- Miso.Property — low-level
textProp,boolProp,intProp
Synopsis
- dir_ :: MisoString -> Attribute action
- displaystyle_ :: MisoString -> Attribute action
- scriptlevel_ :: Int -> Attribute action
- accent_ :: Bool -> Attribute action
- accentunder_ :: Bool -> Attribute action
- align_ :: Bool -> Attribute action
- columnalign_ :: MisoString -> Attribute action
- columnlines_ :: MisoString -> Attribute action
- columnspacing_ :: MisoString -> Attribute action
- columnspan_ :: Int -> Attribute action
- depth_ :: MisoString -> Attribute action
- display_ :: MisoString -> Attribute action
- fence_ :: Bool -> Attribute action
- frame_ :: MisoString -> Attribute action
- framespacing_ :: MisoString -> Attribute action
- height_ :: MisoString -> Attribute action
- href_ :: MisoString -> Attribute action
- id_ :: MisoString -> Attribute action
- linethickness_ :: MisoString -> Attribute action
- lspace_ :: MisoString -> Attribute action
- mathbackground_ :: MisoString -> Attribute action
- mathcolor_ :: MisoString -> Attribute action
- mathsize_ :: MisoString -> Attribute action
- mathvariant_ :: MisoString -> Attribute action
- maxsize_ :: MisoString -> Attribute action
- minsize_ :: MisoString -> Attribute action
- movablelimits_ :: Bool -> Attribute action
- notation_ :: MisoString -> Attribute action
- rowalign_ :: MisoString -> Attribute action
- rowlines_ :: MisoString -> Attribute action
- rowspacing_ :: MisoString -> Attribute action
- rowspan_ :: Int -> Attribute action
- rspace_ :: MisoString -> Attribute action
- separator_ :: Bool -> Attribute action
- stretchy_ :: Bool -> Attribute action
- symmetric_ :: Bool -> Attribute action
- voffset_ :: MisoString -> Attribute action
- width_ :: MisoString -> Attribute action
- close_ :: MisoString -> Attribute action
- open_ :: MisoString -> Attribute action
Global attributes
displaystyle_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
scriptlevel_ :: Int -> Attribute action Source #
Since: 1.9.0.0
Regular attributes
accentunder_ :: Bool -> Attribute action Source #
Since: 1.9.0.0
columnalign_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
columnlines_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
columnspacing_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
columnspan_ :: Int -> Attribute action Source #
Since: 1.9.0.0
depth_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
display_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
frame_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
framespacing_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
height_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
href_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
id_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
linethickness_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
lspace_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
mathbackground_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
mathcolor_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
mathsize_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
mathvariant_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
maxsize_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
minsize_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
movablelimits_ :: Bool -> Attribute action Source #
Since: 1.9.0.0
notation_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
rowalign_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
rowlines_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
rowspacing_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
rspace_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
separator_ :: Bool -> Attribute action Source #
Since: 1.9.0.0
symmetric_ :: Bool -> Attribute action Source #
Since: 1.9.0.0
voffset_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
width_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
close_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0
open_ :: MisoString -> Attribute action Source #
Since: 1.9.0.0