Hello,
What is the best way to add more features (tasks, collapsing sidebar…) to the default bootstrap styles and scripts ?
Regards
JMU
Hello,
What is the best way to add more features (tasks, collapsing sidebar…) to the default bootstrap styles and scripts ?
Regards
JMU
To create a new component, you subclass the Component class: https://github.com/ProfessionalWiki/chameleon/blob/master/src/Components/Component.php
You will have to override the getHtml method (https://github.com/ProfessionalWiki/chameleon/blob/master/src/Components/Component.php#L178)
You may also define additional styles and scripts in a resource module that should then be returned by the getResourceLoaderModules method (https://github.com/ProfessionalWiki/chameleon/blob/master/src/Components/Component.php#L183)
The class name of the new component can then be used in the layout file, e.g.
<component type="SomeComponent"/>
For simpler stuff it may be enough to have a look at https://github.com/ProfessionalWiki/chameleon/blob/master/docs/customization.md