Styling Module
Support CSS styling
Functions and values
Function or value | Description |
Full Usage:
addGlobalStyleSheet doc styleSheet
Parameters:
Document
styleSheet : StyleSheetDefinitions
Returns: unit -> unit
|
|
|
|
Full Usage:
adoptStyleSheet styleSheet
Parameters:
StyleSheetDefinitions
Returns: SutilElement
|
|
Full Usage:
emitStyleAttr keyValues
Parameters:
(string * string) array
Returns: string
|
|
Full Usage:
entryToText classMap styleName _arg1
Parameters:
Map<string, StyleRule>
styleName : string
_arg1 : StyleSheetDefinition
Returns: string
|
|
Full Usage:
filterStyleAttr name style
Parameters:
string
style : string
Returns: string
|
|
Full Usage:
getClassMap styleSheet
Parameters:
StyleSheetDefinition list
Returns: Map<string, StyleRule>
|
|
|
|
Full Usage:
includeRule name
Parameters:
string
Returns: string * obj
|
|
Full Usage:
isGlobal s
Parameters:
string
Returns: bool
|
|
Full Usage:
isPseudo s
Parameters:
string
Returns: bool
|
|
Full Usage:
keyframe startAt style
Parameters:
int
style : (string * obj) list
Returns: KeyFrame
|
|
Full Usage:
keyframes name frames
Parameters:
string
frames : KeyFrame list
Returns: StyleSheetDefinition
|
Example
|
Full Usage:
mapPseudo f s
Parameters:
string -> string
s : string
Returns: string
|
|
|
|
|
|
Full Usage:
parseStyleAttr style
Parameters:
string
Returns: (string * string)[]
|
|
|
|
Full Usage:
rule selector style
Parameters:
string
style : (string * obj) list
Returns: StyleSheetDefinition
|
|
Full Usage:
specifySelector styleName selectors
Parameters:
string
selectors : string
Returns: string
|
|
Full Usage:
splitMapJoin delim f s
Parameters:
char
f : string -> string
s : string
Returns: string
|
|
Full Usage:
withCustomRules rules element
Parameters:
StyleSheetDefinitions
element : SutilElement
Returns: SutilElement
|
|
Full Usage:
withStyle styleSheet element
Parameters:
StyleSheetDefinitions
element : SutilElement
Returns: SutilElement
|
|
Type extensions
Type extension | Description |
|
|
|
|
|
|
Full Usage:
this.adoptedStyleSheets ()
Modifiers: abstract |
Extended Type:
|
|
Extended Type:
|