Internal Documentation Index - sizzlemctwizzle/GM_config GitHub Wiki
GM_config Internal Documentation
The pages listed here are purely for documenting the guts of GM_config. This documentation is not intended for those who wish to use GM_config as a library, but rather those who want join the in the development of GM_config and help improve it.
-
The constructor for the main object users user to interact with GM_config. GM_configStruct
-
Prototype methods
-
Allow support for old api usage. It just calls initGM_configInit now.
-
Does all the DOM building and paints the GUI to the openframe.
-
Reads in all the values from the GUI and saves them to persistent storage. save
-
Removes the GUI from the page. close
-
API method for directly setting one of the values stored internally. set
-
API method for directly accessing one of the values stored internally. get
-
Writes all field values to persistent storage. write
-
Reads all field values from persistent storage. read
-
Makes all fields in the GUI return to their previously saved values. reset
-
A helper function that allows for easy creation of DOM Elements. create
-
Keeps the GUI centered in the window when the window is re-sized. center
-
A helper function to remove an element from the DOM. remove
-
-
Prototype properties
-
A callback method that is called on the GUI has been painted to the onOpenframe.
-
A callback method that is called once field values have been written to persistent storage. onSave
-
A callback method that is called once the GUI has been removed from the page. onClose
-
A callback method that is called once the fields in the GUI have been restored to their previously saved values. onReset
-
A unique id for this instance of idGM_configStruct.
-
Where we store the collection of fieldsGM_configStruct objects.
-
The title text used for the GUI. title
-
The object we use to store both the basic and custom css for the GUI. css
-
-
-
The function we use to initialize a newly created GM_configInitGM_configField object.