-
Notifications
You must be signed in to change notification settings - Fork 0
/
comment_help.txt
executable file
·34 lines (29 loc) · 1.97 KB
/
comment_help.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
***
Comments placeholders. These placeholders will get processed. This helps our script to be documented
with a high maintainability.
***
@__mtformObject : a reference to the currently instanced object of mtform
@__lastComponent : last component's object of @__mtformObject
@__attributes : an object, containing a set of key=value pairs of HTML attributes
@__innerValue : equalling Javascript .innerHTML, the value stored inside the tags <tag>innerValue</tag>
@__template : the template
@__htmlContent : html markup
@__elementJavascript : Element object returned by Javascript.
@__lastContainer : A container specified previously by setContainer(), or by object's constructor.
@__formContainer : A form HTML tag. All the components will be inserted into this element, and this element itself would be inserted into the container.
@__collectionRaw : Collection of @__mtformComponentsByType, which have not been processed and are raw. For instance they might include :attrs placeholder
@__collectionParsed : Collection of parsed @__mtformComponentsByType, which have been processed and are ready to be echoed.
@__collectionOrdered : Collection of @__mtformComponentsByOrder
@__mtformComponentsByType : components that are basically stored into their respective collection based on their type.
@__mtformComponentsByOrder : objects that contain type and index. Type points to the respective type-based collection and index points to the place of that certain element.
@__elementLastType : the type of last components added to the collection
@__elementLastIndex : the index of last components added to the collection
@__remove [version] : will be removed in the version %version%
@__selectorOrElement : It can be a either a string as a CSS selector or a javascript element object.
***
Possible Values
***
CURRENT_VERSION // current version
ONE_MINOR_UP // one minor version upper
ONE_MINOR_DOWN // one minor version down
CURRENT_HASH_INSTANCE // the id of current instance (~session) of the mtForm