new Typography(typographyEl, opts)
Class constructor.
Methods
-
getOptions(typographyEl)
- (static) Get the data attributes from the typographyEl. If typography is being set up
declaratively, this method is used to extract the data attributes from
the DOM.
-
checkOptions(opts)
- (static) Check the options passed in are valid, otherwise set defaults
-
init(rootElement, options)
- (static) Initialise o-typography.
Links
Typography.getOptions(typographyEl)
Static Method
Get the data attributes from the typographyEl. If typography is being set up
declaratively, this method is used to extract the data attributes from
the DOM.
Returns
-
Object.<string, any>
- An option dictionary
Links
Typography.checkOptions(opts)
Static Method
Check the options passed in are valid, otherwise set defaults
Returns
Links
Typography.init(rootElement, options)
Static Method
Initialise o-typography.
Returns
-
Typography
- The Typography instance
Links
new Typography(typographyEl, opts)
Class constructor.
Methods
-
getOptions(typographyEl)
- (static) Get the data attributes from the typographyEl. If typography is being set up
declaratively, this method is used to extract the data attributes from
the DOM.
-
checkOptions(opts)
- (static) Check the options passed in are valid, otherwise set defaults
-
init(rootElement, options)
- (static) Initialise o-typography.
Links