Versions in this module Expand all Collapse all v0 v0.3.0 Feb 15, 2024 Changes in this version + const A + const ARTICLE + const ASIDE + const AUDIO + const B + const BIG + const BLOCKQUOTE + const BODY + const BR + const BUTTON + const CANVAS + const CAPTION + const CENTER + const CODE + const DEL + const DETAILS + const DIV + const DOCTYPE + const EM + const EMBED + const FIELDSET + const FIGCAPTION + const FIGURE + const FONT + const FOOTER + const FORM + const H1 + const H2 + const H3 + const H4 + const H5 + const H6 + const HEAD + const HEADER + const HR + const HTML + const I + const IFRAME + const IMG + const INPUT + const INS + const KBD + const LABEL + const LEGEND + const LI + const LINK + const MAIN + const MARK + const MATH + const MENU + const META + const METER + const NAV + const NOSCRIPT + const OBJECT + const OL + const OPTION + const P + const PARAM + const PRE + const PROGRESS + const Q + const S + const SAMP + const SCRIPT + const SECTION + const SELECT + const SMALL + const SOURCE + const SPAN + const STRIKE + const STRONG + const STYLE + const SUB + const SUMMARY + const SUP + const SVG + const TABLE + const TBODY + const TD + const TEXTAREA + const TFOOT + const TH + const THEAD + const TIME + const TITLE + const TR + const U + const UL + const VAR + const VIDEO + var Document = NewDocumentDOM() + var Window = NewWindowDOM() + func CSSColor(r, g, b int8) string + func CSSColorWithAlpha(r, g, b int8, a float32) string + func ConvertSheetToSlice(sheet CSStylesheet) map[string]string + func ExportFunction(funcName string, function func(f []any) any) + type CSStyle struct + func NewStyle(ele ObjectDOM) *CSStyle + func (style *CSStyle) FromStylesSheet(sheet CSStylesheet) + func (style *CSStyle) Inject(key, value string) + type CSStylesheet struct + AlignContent string + AlignItems string + AlignSelf string + All string + Animation string + AnimationDelay string + AnimationDirection string + AnimationDuration string + AnimationFillMode string + AnimationIteration string + AnimationName string + AnimationPlayState string + AnimationTiming string + BackdropFilter string + BackfaceVisibility string + Background string + BackgroundAttachment string + BackgroundBlendMode string + BackgroundClip string + BackgroundColor string + BackgroundImage string + BackgroundOrigin string + BackgroundPosition string + BackgroundRepeat string + BackgroundSize string + BlockSize string + Border string + BorderBlock string + BorderBlockColor string + BorderBlockEnd string + BorderBlockEndColor string + BorderBlockEndStyle string + BorderBlockEndWidth string + BorderBlockStart string + BorderBlockStartColor string + BorderBlockStartStyle string + BorderBlockStartWidth string + BorderBlockStyle string + BorderBlockWidth string + BorderBottom string + BorderBottomColor string + BorderBottomLeftRadius string + BorderBottomRightRadius string + BorderBottomStyle string + BorderBottomWidth string + BorderCollapse string + BorderColor string + BorderImage string + BorderImageOutset string + BorderImageRepeat string + BorderImageSlice string + BorderImageSource string + BorderImageWidth string + BorderInline string + BorderInlineColor string + BorderInlineEnd string + BorderInlineEndColor string + BorderInlineEndStyle string + BorderInlineEndWidth string + BorderInlineStart string + BorderInlineStartColor string + BorderInlineStartStyle string + BorderInlineStartWidth string + BorderInlineStyle string + BorderInlineWidth string + BorderLeft string + BorderLeftColor string + BorderLeftStyle string + BorderLeftWidth string + BorderRadius string + BorderRight string + BorderRightColor string + BorderRightStyle string + BorderRightWidth string + BorderSpacing string + BorderStyle string + BorderTop string + BorderTopColor string + BorderTopLeftRadius string + BorderTopRightRadius string + BorderTopStyle string + BorderTopWidth string + BorderWidth string + Bottom string + BoxDecorationBreak string + BoxShadow string + BoxSizing string + BreakAfter string + BreakBefore string + BreakInside string + CaptionSide string + CaretColor string + Clear string + Clip string + ClipPath string + Color string + ColumnCount string + ColumnFill string + ColumnGap string + ColumnRule string + ColumnRuleColor string + ColumnRuleStyle string + ColumnRuleWidth string + ColumnSpan string + ColumnWidth string + Columns string + Contain string + Content string + CounterIncrement string + CounterReset string + Cursor string + Direction string + Display string + EmptyCells string + Filter string + Flex string + FlexBasis string + FlexDirection string + FlexFlow string + FlexGrow string + FlexShrink string + FlexWrap string + Float string + Font string + FontFamily string + FontFeatureSettings string + FontKerning string + FontLanguageOverride string + FontSize string + FontSizeAdjust string + FontStretch string + FontStyle string + FontSynthesis string + FontVariant string + FontVariantCaps string + FontVariantEastAsian string + FontVariantLigatures string + FontVariantNumeric string + FontVariantPosition string + FontWeight string + Gap string + Grid string + GridArea string + GridAutoColumns string + GridAutoFlow string + GridAutoRows string + GridColumn string + GridColumnEnd string + GridColumnGap string + GridColumnStart string + GridGap string + GridRow string + GridRowEnd string + GridRowGap string + GridRowStart string + GridTemplate string + GridTemplateAreas string + GridTemplateColumns string + GridTemplateRows string + HangingPunctuation string + Height string + Hyphens string + ImageOrientation string + ImageRendering string + InlineSize string + Inset string + InsetBlock string + InsetBlockEnd string + InsetBlockStart string + InsetInline string + InsetInlineEnd string + InsetInlineStart string + Isolation string + JustifyContent string + Left string + LetterSpacing string + LineBreak string + LineHeight string + ListStyle string + ListStyleImage string + ListStylePosition string + ListStyleType string + Margin string + MarginBlock string + MarginBlockEnd string + MarginBlockStart string + MarginBottom string + MarginInline string + MarginInlineEnd string + MarginInlineStart string + MarginLeft string + MarginRight string + MarginTop string + Mask string + MaskBorder string + MaskBorderMode string + MaskBorderOutset string + MaskBorderRepeat string + MaskBorderSlice string + MaskBorderSource string + MaskBorderWidth string + MaskClip string + MaskComposite string + MaskImage string + MaskMode string + MaskOrigin string + MaskPosition string + MaskRepeat string + MaskSize string + MaskType string + MaxBlockSize string + MaxHeight string + MaxInlineSize string + MaxWidth string + MinBlockSize string + MinHeight string + MinInlineSize string + MinWidth string + MixBlendMode string + ObjectFit string + ObjectPosition string + Offset string + OffsetAnchor string + OffsetBlock string + OffsetBlockEnd string + OffsetBlockStart string + OffsetDistance string + OffsetInline string + OffsetInlineEnd string + OffsetInlineStart string + OffsetPath string + OffsetRotate string + Opacity string + Order string + Orphans string + Outline string + OutlineColor string + OutlineOffset string + OutlineStyle string + OutlineWidth string + Overflow string + OverflowAnchor string + OverflowBlock string + OverflowInline string + OverflowWrap string + OverflowX string + OverflowY string + OverscrollBehavior string + OverscrollBehaviorBlock string + OverscrollBehaviorInline string + OverscrollBehaviorX string + OverscrollBehaviorY string + Padding string + PaddingBlock string + PaddingBlockEnd string + PaddingBlockStart string + PaddingBottom string + PaddingInline string + PaddingInlineEnd string + PaddingInlineStart string + PaddingLeft string + PaddingRight string + PaddingTop string + PageBreakAfter string + PageBreakBefore string + PageBreakInside string + PaintOrder string + Perspective string + PerspectiveOrigin string + PlaceContent string + PlaceItems string + PlaceSelf string + PointerEvents string + Position string + Quotes string + Resize string + Right string + Rotate string + RowGap string + RubyAlign string + RubyMerge string + RubyPosition string + Scale string + ScrollBehavior string + ScrollMargin string + ScrollMarginBlock string + ScrollMarginBlockEnd string + ScrollMarginBlockStart string + ScrollMarginBottom string + ScrollMarginInline string + ScrollMarginInlineEnd string + ScrollMarginInlineStart string + ScrollMarginLeft string + ScrollMarginRight string + ScrollMarginTop string + ScrollPadding string + ScrollPaddingBlock string + ScrollPaddingBlockEnd string + ScrollPaddingBlockStart string + ScrollPaddingBottom string + ScrollPaddingInline string + ScrollPaddingInlineEnd string + ScrollPaddingInlineStart string + ScrollPaddingLeft string + ScrollPaddingRight string + ScrollPaddingTop string + ScrollSnapAlign string + ScrollSnapStop string + ScrollSnapType string + ShapeImageThreshold string + ShapeMargin string + ShapeOutside string + TabSize string + TableLayout string + TextAlign string + TextAlignLast string + TextCombineUpright string + TextDecoration string + TextDecorationColor string + TextDecorationLine string + TextDecorationSkip string + TextDecorationSkipInk string + TextDecorationStyle string + TextDecorationThickness string + TextEmphasis string + TextEmphasisColor string + TextEmphasisPosition string + TextEmphasisStyle string + TextIndent string + TextJustify string + TextOrientation string + TextOverflow string + TextRendering string + TextShadow string + TextSizeAdjust string + TextTransform string + TextUnderlinePosition string + Top string + TouchAction string + Transform string + TransformBox string + TransformOrigin string + TransformStyle string + Transition string + TransitionDelay string + TransitionDuration string + TransitionProperty string + TransitionTiming string + Translate string + UnicodeBidi string + UserSelect string + VerticalAlign string + Visibility string + WhiteSpace string + Width string + WillChange string + WordBreak string + WordSpacing string + WordWrap string + WritingMode string + ZIndex string + type DocumentDOM struct + func NewDocumentDOM() *DocumentDOM + func (d *DocumentDOM) AppendChild(ele *ObjectDOM) + func (d *DocumentDOM) Create(typeOfElement string) *ObjectDOM + func (d *DocumentDOM) GetById(id string) *ObjectDOM + type EventListener struct + func NewEventListener(object *ObjectDOM) *EventListener + func (listener *EventListener) AddClick(name string, function func(MouseEvent)) + func (listener *EventListener) RemoveClick(name string) + func (o *EventListener) GetClicks() map[string]func(MouseEvent) + type IObjectDOM interface + AddClass func(string) + CallFunction func(string, ...interface{}) + Class func() []string + ClearClass func() + ClearID func() + GetHTMLType func() string + GetProperty func(string) js.Value + GetPropertyAsString func(string) + ID func() string + InnerHTML func() string + InnerText func() string + RemoveClass func(string) + SetID func(string) + SetInnerHTML func(string) + SetInnerText func(string) + SetProperty func(string, ...interface{}) + SetValue func(string) string + Value func() string + type MouseEvent struct + ClientX int + ClientY int + Object *ObjectDOM + PreventDefault func() + X int + Y int + type ObjectDOM struct + Listener *EventListener + func (o *ObjectDOM) CallFunction(function string, params ...interface{}) + func (o *ObjectDOM) GetAsStringProperty(property string) string + func (o *ObjectDOM) GetProperty(property string) js.Value + func (o *ObjectDOM) SetProperty(property string, params ...interface{}) + func (ob *ObjectDOM) ClearID() + func (object *ObjectDOM) GetHTMLType() string + func (object *ObjectDOM) InnerHTML() string + func (object *ObjectDOM) InnerText() string + func (object *ObjectDOM) SetInnerHTML(value string) + func (object *ObjectDOM) SetInnerText(value string) + func (object *ObjectDOM) SetValue(value string) + func (object *ObjectDOM) Value() string + func (oj *ObjectDOM) AddClass(class string) + func (oj *ObjectDOM) Class() []string + func (oj *ObjectDOM) ClearClass() + func (oj *ObjectDOM) ID() string + func (oj *ObjectDOM) RemoveClass(class string) + func (oj *ObjectDOM) SetID(id string) + func (p *ObjectDOM) NewStyle() CSStyle + type WindowDOM struct + func NewWindowDOM() *WindowDOM + func (win *WindowDOM) Alert(message string) + func (win *WindowDOM) CallFunction(function string, params ...interface{})