Object ng_config vs. 1.1.0 Full+Lite

The library needs to include images and CSS styles to format different objects and components. Also, language files are needed for localization. In order to achieve this, the library includes an assets folder which includes all the CSS, images and language files.

We also understand different developers use different files structure; the configuration variable includes the root folder for the assets directly. It can be set on any page independently. Moreover, the configuration object includes general color, style and animation data.

Properties

String assets_dir (Optional - Default: null) vs. 1.1.0 Full+Lite
A string value that represents the location of the assets directory. The path should be relative to the page that loads the JavaScript files. As of version 1.2.0, the default value of the assets_dir is set to null which will set the path to the same folder as the ng_all.js or ng_lite.js
String css_skin_prefix (Optional - Default: ng_) vs. 1.1.0 Full+Lite
A string for the CSS skin prefix. All widget in the NoGray framework support skinning via CSS. In order to seperate different skins in different files, the NoGray framework will loads the CSS files with the prefix in this configuration variable.
String language (Optional - Default: en) vs. 1.1.0 Full+Lite
A string that represent the default language to load for the NoGray framework. This helps in easing translation and localization of any tools that uses the NoGray framework.
Integer animation_time (Optional - Default: 500) vs. 1.1.0 FULL ONLY
An integer of milliseconds for the default animation time. This value is used when an object is animated without giving a duration value.
String animation_easing (Optional - Default: quad_in_out) vs. 1.1.0 FULL ONLY
A string that represents the animation easing function by default. This value is used when an object is animated withing giving an easing function.
Integer animation_FPS (Optional - Default: 40) vs. 1.1.0 FULL ONLY
An integer value of how many frames per second should the animation be processed.
Boolean use_ui (Optional - Default: true) vs. 1.2.0 Full+Lite
Should the library uses the UI as of version 1.2.0 interface or not. This option is ignored if the browser doesn't support the UI.
Boolean load_icons (Optional - Default: false) vs. 1.2.0 Full+Lite
Allow the UI to load a set of common icons.
Integer xhr_timeout_length (Optional - Default: 10) vs. 1.1.0 FULL ONLY
How many seconds before an XHR request (ajax request) is aborted if there is no responds from the server.
String xhr_encoding (Optional - Default: utf-8) vs. 1.1.0 FULL ONLY
The default encode fro the XHR request.
Changing Values Globally vs. 1.1.0 Full+Lite
In order to change the configuration globally in your website (in every page), you would need to edit the ng_all.js file directly.
Changing Values Locally vs. 1.1.0 Full+Lite
If you would like to make some changes to the configuration in a single page, you would need to add a configuration object ng_config before loading the ng_all.js file.
String button_color (Optional - Default: transparent) vs. 1.1.0 Full+Lite. Deprecated in vs 1.2.0
As of version 1.2.0, this option is deprecated and will be removed in version 1.2.5. A string value for the default button color to be used in the NoGray widgets. Buttons are used in many widgets and to insure everything matches, this value will be used by default if the color button color value is not passed as an option.
String button_over_color (Optional - Default: #ffd06e) vs. 1.1.0 Full+Lite. Deprecated in vs 1.2.0
As of version 1.2.0, this option is deprecated and will be removed in version 1.2.5. A string value for the default button color when the mouse is over it.
String button_disable_color (Optional - Default: null) vs. 1.1.0 Full+Lite. Deprecated in vs 1.2.0
As of version 1.2.0, this option is deprecated and will be removed in version 1.2.5. A string value for the default button color when disabled. Default value is null (the desaturated value of button_color).
String button_down_color (Optional - Default: null) vs. 1.1.0 Full+Lite. Deprecated in vs 1.2.0
As of version 1.2.0, this option is deprecated and will be removed in version 1.2.5. A string value for the default button color when clicked. Default value is null (same as button_over_color).
String button_text_color (Optional - Default: null) vs. 1.1.0 Full+Lite. Deprecated in vs 1.2.0
As of version 1.2.0, this option is deprecated and will be removed in version 1.2.5. A string value for the default button text color. Default value is null (white for dark buttons and black for light buttons).
String button_checked_color (Optional - Default: #f5be5b) vs. 1.1.0 Full+Lite. Deprecated in vs 1.2.0
As of version 1.2.0, this option is deprecated and will be removed in version 1.2.5. A string value for the default button color when checked.
Boolean button_light_border (Optional - Default: false) vs. 1.1.4 Full+Lite. Deprecated in vs 1.2.0
As of version 1.2.0, this option is deprecated and will be removed in version 1.2.5. True or false to use a light border around the buttons. By default, the border is darker color of the button color, but if this is set to true, the border color is lighter. This is useful when the button is dark and the page background is dark as well.
Boolean button_gloss (Optional - Default: true) vs. 1.1.0 Full+Lite. Deprecated in vs 1.2.0
As of version 1.2.0, this option is deprecated and will be removed in version 1.2.5. A boolean to either add a gloss effect on the button or leave it matt.