List of used attributes
We've added some custom attributes to the HTML source to be used with "the Builder".
For an image with a link, you should not put the href directly because "the Builder" will ignore it, instead you should add an attribute called "data-href" that contains your link. Our example of an image element becomes :
You may have noticed that there is an attribute called "data-max-width" in the image element. The value of this attribute will be used by "the Builder" to limit the image's width. The user will not be able to set a width value bigger than this value.
data-btn-num: provides the button class that will determine the button parts. Then "the builder" will search these parts. For example, if the value of the attribute is "btn" you should add "btn-R", "btn-L", "btn-T"" and btn-B for side elements.
The following table is a list of used attributes
Attribute |
Element |
Description |
data-linked-to |
Text |
The value of this attribute is a class name that "the Builder" will search inside the ".table_container'" to apply background color on all elements with this class |
data-max-width |
Image |
Determines the image's maximum width. The user will not be allowed to set a width value bigger than this value. |
data-btn-num |
Button |
Sets the number of a button to be linked to other parts of the button |
data-href |
Navigation |
The value of this attribue indicates the href value of the link |
see also: