About
ComboStrap implements in most of its components the marki language. It's a simplified version of the HTML language and follows the same rules.
Below, we describe the syntax, they all have in common.
Syntax
Every marki component follows this syntax
<component type name1="value1" ... nameN="valueN" >
<!-- content -->
</component>
where:
- type is the type of component. Not every component has a type but if it's the case, you don't need to set a name for it.
- nameX=“valueX” are attributes that may be:
- specific to this component
- or the html attributes
- Boolean attributes does not need any value to set them to true
- If your value does not have space, this is not mandatory to enclose it between quotes
Styling
Every component implements also a set of styling attributes
Example:
- The tree colors attributes can be passed natively. You can write:
<component color="blue">
- The dimension attributes (width and height) are also taken into account in each component. You can write:
<component width="100px">
HTML
Due to security concerns, the HTML attributes are by default not supported.
You may use the class but not the others such as the style because it allows attacks such as ClickJacking.