Version 2
What is new? Migration Guide From V1
Getting Started
Understanding WinnetouJs Setting Up
Constructos
Creating Constructos Advanced Options Lazy Loading
Mutables
Constructos State Management Case: Custom State Management System Winnetou FX
Addons
Winnetou Selectors Winnetou Router App Translations CSS Sass Built-in Transpiler SVG Icons Color Themes
Extras
Useful JsDoc Syntax
Plugins
Creating Plugins SlideScreen Official Plugin Animate Official Plugin
Compiling to Production
WBR
API Change Log Git Hub Pull Requests Guidelines Get in touch
Addons

Winnetou Selectors

As we said earlier, WinnetouJs loves vanillaJs, but we know how manipulating the DOM can give us a headache. That is why Winnetou brings with it the "select" method to help make DOM manipulations easier. All child methods of select are documented with jsdoc, so the VSCode auto complete will work very well. The basic syntax is Winnetou.select(selector).method([arguments])

select.js

        
Winnetou.select(myDiv.ids.div)
    .html("changed")
    .css("backgroundColor", "#eee")
    .toggleClass("blue");

Winnetou.select(myDiv2.ids.div).hide();
Winnetou.select(myDiv3.ids.div).hide();
Winnetou.select(hiddenDiv_.ids.hiddenDiv).show();
       
      

Child Methods List