controls.js | |
Variables | |
ngControlsVer | Main version of the Controls framework. |
ngControlsSubVer | Subversion of the Controls framework. |
ngControlsAPIVersion | Version of the Controls framework evaluated as string. |
ngControlsAPICopyright | Controls framework copyright information. |
ngApp | Reference to running ngApplication object. |
ngc_Lang | Application languages resource strings/objects. |
ngIE6AlignFix | If TRUE, the controls API fixes right align property in IE6. |
Functions | |
ngLang | Defines resource string/object. |
ngBeginLang | Begins block of locale definition with id lngid. |
ngBeginLang | End block of locale definition. |
ngTxt | Gets locale text. |
ngRes | Gets locale resource object. |
ngGetControlById | Gets control object by ID. |
ngGetControlByElement | Gets control object by DOM element. |
ng_MergeDef | Merges two control definitions. |
ngCreateControl | Creates control by definition. |
ngCreateControlAsType | Creates control by definition and type. |
ngControl | This is an abstract class for all visual controls. |
Definition | |
Type | ... |
L | ... |
T | ... |
W | ... |
H | ... |
R | ... |
B | ... |
ScrollBars | ... |
Data | ... |
style | ... |
Opacity | ... |
className | ... |
innerHTML | ... |
id | ... |
parent | ... |
Controls | ... |
ParentReferences | ... |
IE6AlignFix | ... |
OnCreated | |
OnCreateHTMLElement | |
Properties | |
ID | Control identificator. |
CtrlType | Control type. |
CtrlInheritedFrom | Control inheritance info. |
BaseClassName | Control CSS base class. |
Enabled | Controls whether the control responds to mouse, keyboard. |
Visible | Determines whether the control is visible. |
Bounds | Specifies the position of the control. |
Owner | If present, contains reference to object which holds reference to the control. |
ParentControl | If present, contains reference to the parent of the control. |
ChildControls | If present, contains references to child controls. |
Gestures | If present, the properties of object represents gestures and values specifies if gesture is enabled or not (true/false). |
Methods | |
Enable | Enables control. |
Disable | Disables control. |
SetEnabled | Sets enabled state of the control. |
SetVisible | Sets control visibility. |
SetFocus | Sets focus on the control. |
Elm | Gets access to container DIV element object. |
CtrlInheritsFrom | Checks if control is inherited from given type. |
Create | Creates control DIV container. |
Dispose | Destroys the control. |
SetBounds | Updates or sets position of the control. |
SetScrollBars | Sets scroll bars apperance. |
SetPopup | Sets if control work as popup. |
SetOpacity | Sets control opacity. |
Align | Aligns control to its position. |
Attach | Attaches control to DIV container. |
Release | Clears control’s DIV container. |
Update | Redraws control. |
Events | |
AddEvent | Adds new function to the event handler (callback). |
RemoveEvent | Removes function from the event handler (callback). |
OnSetEnabled | |
OnEnabledChanged | |
OnSetVisible | |
OnVisibleChanged | |
OnUpdate | |
OnUpdated | |
OnMouseEnter | |
OnMouseLeave | |
ngSysControl | This is an abstract class for all non-visual controls. |
Properties | |
ID | Control identificator. |
CtrlType | Control type. |
CtrlInheritedFrom | Control inheritance info. |
Enabled | Controls whether the control responds to mouse, keyboard. |
Owner | If present, contains reference to object which holds reference to the control. |
ParentControl | If present, contains reference to the parent of the control. |
ChildControls | If present, contains references to child controls. |
Methods | |
CtrlInheritsFrom | Checks if control is inherited from given type. |
Enable | Enables control. |
Disable | Disables control. |
SetEnabled | Sets enabled state of the control. |
Elm | Gets access to container DIV element object. |
Create | Creates control. |
Dispose | Destroys the control. |
Events | |
AddEvent | Adds new function to the event handler (callback). |
RemoveEvent | Removes function from the event handler (callback). |
OnSetEnabled | |
OnEnabledChanged | |
ngApplication | This class encapsulates web application. |
Properties | |
AppPath | ... |
Lang | ... |
ElmID | ... |
StartParams | ... |
LocationHash | ... |
MobileKeyboardFix | ... |
Methods | |
GetLang | Gets existing application language. |
Text | Gets resource string by application language. |
Resource | Gets resource by application language. |
Run | Executes the application. |
SetTitle | Sets application title. |
MessageBox | Displays a message to user. |
Alert | Displays a message to user. |
Confirm | Displays a message with Yes or No buttons to user. |
Param | Gets application input parameter (from URL). |
SetParam | Sets application parameter value (and optionaly its type). |
SetClientParam | Sets application client parameter value. |
SetURLParam | Sets application URL parameter value. |
SetServerParam | Sets application server parameter value. |
ParamType | Gets application parameter type. |
SetParamType | Sets application parameter type. |
SetParamEncodingFnc | Sets application parameter encoding and decoding functions. |
PersistParam | Sets application parameter persistence. |
ParseParams | Parse application parameters from browser’s or given URL. |
UpdateParams | Update application client parameters. |
BeginUpdateParams | Prevents the updating of application client parameters until the EndUpdateParams method is called. |
EndUpdateParams | Performs application client parameters update deferred by a call to BeginUpdateParams. |
InvokeLater | Invokes event after all remaining JavaScript code is executed and flow is returned back to browser. |
Call | Call application on another URL. |
CallServer | Call server on specified URL. |
CallServerEx | Call server on specified URL with parameters. |
Elm | Gets access to application container DIV element object. |
RegisterAPI | Registers new application API. |
UnregisterAPI | Unregisters existing application API. |
GetAPI | Gets application API by selected id. |
GetAPIAll | Gets all application API by selected id. |
GetAPIByStrVersion | Gets exact application API by its string version. |
GetAPIAllByStrVersion | Gets all APIs which matches exact string version. |
Events | |
OnRun | |
OnRunFinished | |
OnParamsChanged | |
OnSetParam | |
OnGetParam | |
OnDecodeParam | |
OnEncodeParam | |
OnCallURL | |
OnCall | |
OnCallServerURL | |
OnServerCall | |
OnMapParamsChanged | |
OnDeviceChanged | |
ngControls | This class represents references to a group of controls. |
Methods | |
Update | Redraws all controls. |
Release | Clears all control’s DIV containers. |
Dispose | Destroys all controls. |
AddControls | Adds controls. |
ngPanel | This class implements a generic panel control. |
ngFrame | Standard frame control (based on ngPanel). |
Definition | |
ParentReferences | ... |
ngText | This class implements a generic static text control. |
Properties | |
TextAlign | ... |
AutoSize | ... |
AutoSizeMode | ... |
MinWidth | ... |
MinHeight | ... |
Text | ... |
Alt | ... |
HTMLEncode | ... |
CanSelect | ... |
Methods | |
SetText | Sets new text content. |
GetText | Gets text content. |
GetAlt | Gets alt text. |
Events | |
OnSetText | |
OnGetText | |
OnGetAlt | |
ngImage | This class implements a generic image control. |
Properties | |
Alt | ... |
Img | ... |
AutoSize | ... |
Methods | |
GetAlt | Gets alt text. |
GetImg | Gets image. |
Events | |
OnGetAlt | |
OnGetImg | |
ngImageMap | This class implements a generic imagemap control. |
Properties | |
Alt | ... |
Img | ... |
Cursor | ... |
AutoSize | ... |
Shapes | ... |
Methods | |
GetAlt | Gets alt text. |
GetImg | Gets image. |
Events | |
OnGetAlt | |
OnGetImg | |
OnGetShapeAlt | |
OnShapeClick | |
OnMouseEnter | |
OnMouseLeave | |
OnMouseShapeEnter | |
OnMouseShapeLeave | |
ngSysAction | This class implements action non-visual control. |
Properties | |
Text | ... |
Alt | ... |
Checked | ... |
RadioGroup | ... |
Img | ... |
Visible | Determines whether the control is visible. |
Methods | |
Check | Sets new button check state. |
Click | Clicks the button. |
SetText | Sets new button text. |
Events | |
OnSetText | |
OnGetText | |
OnGetAlt | |
OnCheckChanged | |
OnClick | |
OnGetImg | |
OnSetVisible | |
OnVisibleChanged | |
OnUpdate | |
ngButton | This class implements a generic button control. |
Properties | |
Action | ... |
Text | ... |
TextAlign | ... |
Alt | ... |
HTMLEncode | ... |
AutoSize | ... |
MinWidth | ... |
Checked | ... |
RadioGroup | ... |
Cursor | ... |
ReadOnly | ... |
Img | ... |
ImgAlign | ... |
ImgIndent | ... |
LeftImg | ... |
MiddleImg | ... |
RightImg | ... |
Methods | |
Check | Sets new button check state. |
Click | Clicks the button. |
SetText | Sets new button text. |
GetText | Gets text content. |
GetAlt | Gets alt text. |
Events | |
OnSetText | |
OnGetText | |
OnGetAlt | |
OnCheckChanged | |
OnDblClick | |
OnClick | |
OnMouseEnter | |
OnMouseLeave | |
OnGetImg | |
OnGetClassName | |
ngCheckBox | Standard check box control (based on ngButton). |
Properties | |
AllowGrayed | ... |
ngRadioButton | Standard radio button control (based on ngButton). |
Properties | |
AllowGrayed | ... |
ngGroup | This class implements a generic group control. |
Definition | |
CW | ClientRect width. |
CH | ClientRect height. |
ControlsPanel | Controls panel definition. |
Properties | |
Text | ... |
HTMLEncode | ... |
Frame | ... |
ControlsInside | ... |
Methods | |
GetText | Gets text content. |
GetClientRect | Gets client rectangle dimensions. |
SetClientRect | Sets client rectangle dimensions. |
Events | |
OnGetText | |
ngEdit | This class implements a generic edit control. |
Definition | |
DropDown | ... |
Properties | |
Text | ... |
DefaultText | ... |
TextAlign | ... |
Alt | ... |
Hint | ... |
HintStyle | ... |
ReadOnly | ... |
Password | ... |
MaxLength | ... |
LeftImg | ... |
MiddleImg | ... |
RightImg | ... |
OffsetTop | ... |
HasFocus | ... |
SelectOnFocus | ... |
Buttons | ... |
DropDownType | ... |
DropDownControl | ... |
DropDownWidth | ... |
DropDownAlign | ... |
Suggestion | ... |
SuggestionDelay | ... |
SuggestionSearchColumn | ... |
SuggestionIgnoreCase | ... |
SuggestionPartial | ... |
SuggestionURL | ... |
SuggestionType | ... |
Methods | |
SetText | Sets edit text. |
GetText | Gets edit text. |
GetAlt | Gets alt text. |
GetHint | Gets hint text. |
SetReadOnly | Sets readonly state of control. |
GetCaretPos | Gets caret position. |
SetCaretPos | Sets caret position. |
SetDropDownControl | Assigns drop down control to edit box. |
DropDown | Shows drop down. |
HideDropDown | Hides drop down. |
SuggestionRefresh | Refreshes suggestion content. |
Events | |
OnSetText | |
OnGetText | |
OnTextChanged | |
OnGetAlt | |
OnGetHint | |
OnGetClassName | |
OnDropDown | |
OnHideDropDown | |
OnClickOutside | |
OnKeyDown | |
OnKeyUp | |
OnKeyPress | |
OnMouseEnter | |
OnMouseLeave | |
OnFocus | |
OnBlur | |
OnGetImg | |
OnSuggestionSetText | |
OnSuggestionSearch | |
OnSuggestionCompareItem | |
OnSuggestionURL | |
OnSuggestionResults | |
OnSuggestionData | |
ngDropDown | Standard drop down control (based on ngEdit). |
ngDropDownList | Standard drop down list control (based on ngEdit). |
ngEditNum | Standard edit number control with spin buttons (based on ngEdit). |
Definition | |
ArrowsAlign | |
Arrows | |
Properties | |
Step | ... |
StepRound | ... |
MinNum | ... |
MaxNum | ... |
DefaultNum | ... |
Methods | |
DoUp | Increase value by Step. |
DoDown | Decrease value by Step. |
GetNum | Gets number. |
SetNum | Sets number. |
ButtonUp | ... |
ButtonDown | ... |
Events | |
OnGetNum | |
OnSetNum | |
OnUp | |
OnDown | |
ngMemo | This class implements a generic memo control. |
Properties | |
Text | ... |
DefaultText | ... |
TextAlign | ... |
Alt | ... |
Hint | ... |
HintStyle | ... |
ReadOnly | ... |
Frame | ... |
HasFocus | ... |
SelectOnFocus | ... |
Methods | |
SetText | Sets memo text. |
GetText | Gets memo text. |
GetAlt | Gets alt text. |
GetHint | Gets hint text. |
SetReadOnly | Sets readonly state of control. |
GetCaretPos | Gets caret position. |
SetCaretPos | Sets caret position. |
Events | |
OnSetText | |
OnGetText | |
OnTextChanged | |
OnGetAlt | |
OnGetHint | |
OnGetClassName | |
OnKeyDown | |
OnKeyUp | |
OnKeyPress | |
OnMouseEnter | |
OnMouseLeave | |
OnFocus | |
OnBlur | |
ngPages | This class implements a generic page control. |
Definition | |
Pages | ... |
ControlsPanel | Controls panel definition. |
Properties | |
Page | ... |
PagesVisible | ... |
PagesIndent | ... |
PagesSize | ... |
MaxRows | ... |
PagesAlign | ... |
PagesVAlign | ... |
TextAlign | ... |
HTMLEncode | ... |
Pages | ... |
RowOverlap | ... |
PageImages | ... |
Frame | ... |
Methods | |
SetPage | Sets current page index. |
GetPageById | Gets page index by page id. |
GetIdByPage | Gets page id by page index. |
GetPageObjById | Gets page object by page id. |
GetPageByText | Gets page index by page text caption. |
GetPageByControl | Gets page index by control placed on page. |
GetPageObjByControl | Gets page object by control placed on page. |
SetPageByControl | Sets page by control placed on page. |
Events | |
OnPageChanging | |
OnPageChanged | |
OnGetText | |
OnGetAlt | |
OnClick | |
OnDblClick | |
ngToolBar | This class implements a generic toolbar control. |
Properties | |
AutoSize | ... |
Vertical | ... |
VPadding | ... |
HPadding | ... |
VAlign | ... |
HAlign | ... |
Wrapable | ... |
Methods | |
CtrlBringToFront | void CtrlBringToFront (object ctrl) |
CtrlSendToBack | void CtrlSendToBack (object ctrl) |
CtrlInsertAfter | void CtrlInsertAfter (object ctrl, object whichctrl) |
CtrlInsertBefore | void CtrlInsertBefore (object ctrl, object whichctrl) |
Child Controls Properties | |
ToolBarIgnore | ... |
ToolBarAutoUpdate | ... |
ToolBarIndent | ... |
ToolBarHPadding | ... |
ToolBarVPadding | ... |
ToolBarWidth | ... |
ToolBarHeight | ... |
ToolBarBreak | ... |
ToolBarNoWrap | ... |
ngProgressBar | This class implements a generic progress bar control. |
Properties | |
Position | ... |
Smooth | ... |
LeftImg | ... |
MiddleImg | ... |
RightImg | ... |
BarImg | ... |
Methods | |
SetPosition | Sets position of progress in interval 0-100. |
BeginProcess | Starts waiting animation. |
EndProcess | Ends waiting animation. |
ngWebBrowser | This class implements a web browser control. |
Properties | |
URL | ... |
Methods | |
SetURL | Sets browser URL. |
GetURL | Gets browser URL. |
SetHTML | Sets HTML code directly into browser. |
GetBrowser | Gets browser IFRAME element. |
GetDocument | Gets browser document object. |
Events | |
OnSetURL | |
OnGetURL | |
OnSetHTML |
var ngApp
Reference to running ngApplication object.
function ng_MergeDef( dst, def, allowundefined, callback )
Merges two control definitions.
void ng_MergeDef (mixed dst, mixed def [, bool allowundefined=false, function callback])
dst | destination definition |
def | definition to be merged |
allowundefined | if FALSE (default), undefined values in parameter var are ignored |
callback | optional callback function |
-
function ngCreateControl( d, ref, parent )
Creates control by definition.
object ngCreateControl (object def, object ref, mixed parent)
def | control definition |
ref | reference owner (object where reference to control is stored) |
parent | string ID or object of parent DIV element |
Reference to new control object.
function ngCreateControlAsType( def, type, ref, parent )
Creates control by definition and type. Control type is passed as parameter and type in definition is ignored.
object ngCreateControlAsType (object def, string ctrltype, object ref, mixed parent)
def | control definition |
ctrltype | control type |
ref | reference owner (object where reference to control is stored) |
parent | string ID or object of parent DIV element |
Reference to new control object.
This is an abstract class for all visual controls.
new ngControl (object obj, string id, string ctrltype)
obj | implementation of control object |
id | control ID |
ctrltype | control type |
Definition | |
Type | ... |
L | ... |
T | ... |
W | ... |
H | ... |
R | ... |
B | ... |
ScrollBars | ... |
Data | ... |
style | ... |
Opacity | ... |
className | ... |
innerHTML | ... |
id | ... |
parent | ... |
Controls | ... |
ParentReferences | ... |
IE6AlignFix | ... |
OnCreated | |
OnCreateHTMLElement | |
Properties | |
ID | Control identificator. |
CtrlType | Control type. |
CtrlInheritedFrom | Control inheritance info. |
BaseClassName | Control CSS base class. |
Enabled | Controls whether the control responds to mouse, keyboard. |
Visible | Determines whether the control is visible. |
Bounds | Specifies the position of the control. |
Owner | If present, contains reference to object which holds reference to the control. |
ParentControl | If present, contains reference to the parent of the control. |
ChildControls | If present, contains references to child controls. |
Gestures | If present, the properties of object represents gestures and values specifies if gesture is enabled or not (true/false). |
Methods | |
Enable | Enables control. |
Disable | Disables control. |
SetEnabled | Sets enabled state of the control. |
SetVisible | Sets control visibility. |
SetFocus | Sets focus on the control. |
Elm | Gets access to container DIV element object. |
CtrlInheritsFrom | Checks if control is inherited from given type. |
Create | Creates control DIV container. |
Dispose | Destroys the control. |
SetBounds | Updates or sets position of the control. |
SetScrollBars | Sets scroll bars apperance. |
SetPopup | Sets if control work as popup. |
SetOpacity | Sets control opacity. |
Align | Aligns control to its position. |
Attach | Attaches control to DIV container. |
Release | Clears control’s DIV container. |
Update | Redraws control. |
Events | |
AddEvent | Adds new function to the event handler (callback). |
RemoveEvent | Removes function from the event handler (callback). |
OnSetEnabled | |
OnEnabledChanged | |
OnSetVisible | |
OnVisibleChanged | |
OnUpdate | |
OnUpdated | |
OnMouseEnter | |
OnMouseLeave |
This is an abstract class for all non-visual controls.
new ngSysControl (object obj, string id, string ctrltype)
obj | implementation of control object |
id | control ID |
ctrltype | control type |
Properties | |
ID | Control identificator. |
CtrlType | Control type. |
CtrlInheritedFrom | Control inheritance info. |
Enabled | Controls whether the control responds to mouse, keyboard. |
Owner | If present, contains reference to object which holds reference to the control. |
ParentControl | If present, contains reference to the parent of the control. |
ChildControls | If present, contains references to child controls. |
Methods | |
CtrlInheritsFrom | Checks if control is inherited from given type. |
Enable | Enables control. |
Disable | Disables control. |
SetEnabled | Sets enabled state of the control. |
Elm | Gets access to container DIV element object. |
Create | Creates control. |
Dispose | Destroys the control. |
Events | |
AddEvent | Adds new function to the event handler (callback). |
RemoveEvent | Removes function from the event handler (callback). |
OnSetEnabled | |
OnEnabledChanged |
This class encapsulates web application.
new ngApplication ([object startparams = { }, string elm = ‘ngApp’, bool autorun=true])
startparams | application startup parameters |
elm | application container DIV id |
autorun | run application after object creation |
Properties | |
AppPath | ... |
Lang | ... |
ElmID | ... |
StartParams | ... |
LocationHash | ... |
MobileKeyboardFix | ... |
Methods | |
GetLang | Gets existing application language. |
Text | Gets resource string by application language. |
Resource | Gets resource by application language. |
Run | Executes the application. |
SetTitle | Sets application title. |
MessageBox | Displays a message to user. |
Alert | Displays a message to user. |
Confirm | Displays a message with Yes or No buttons to user. |
Param | Gets application input parameter (from URL). |
SetParam | Sets application parameter value (and optionaly its type). |
SetClientParam | Sets application client parameter value. |
SetURLParam | Sets application URL parameter value. |
SetServerParam | Sets application server parameter value. |
ParamType | Gets application parameter type. |
SetParamType | Sets application parameter type. |
SetParamEncodingFnc | Sets application parameter encoding and decoding functions. |
PersistParam | Sets application parameter persistence. |
ParseParams | Parse application parameters from browser’s or given URL. |
UpdateParams | Update application client parameters. |
BeginUpdateParams | Prevents the updating of application client parameters until the EndUpdateParams method is called. |
EndUpdateParams | Performs application client parameters update deferred by a call to BeginUpdateParams. |
InvokeLater | Invokes event after all remaining JavaScript code is executed and flow is returned back to browser. |
Call | Call application on another URL. |
CallServer | Call server on specified URL. |
CallServerEx | Call server on specified URL with parameters. |
Elm | Gets access to application container DIV element object. |
RegisterAPI | Registers new application API. |
UnregisterAPI | Unregisters existing application API. |
GetAPI | Gets application API by selected id. |
GetAPIAll | Gets all application API by selected id. |
GetAPIByStrVersion | Gets exact application API by its string version. |
GetAPIAllByStrVersion | Gets all APIs which matches exact string version. |
Events | |
OnRun | |
OnRunFinished | |
OnParamsChanged | |
OnSetParam | |
OnGetParam | |
OnDecodeParam | |
OnEncodeParam | |
OnCallURL | |
OnCall | |
OnCallServerURL | |
OnServerCall | |
OnMapParamsChanged | |
OnDeviceChanged |
Prevents the updating of application client parameters until the EndUpdateParams method is called.
void BeginUpdateParams ()
-
Performs application client parameters update deferred by a call to BeginUpdateParams.
void EndUpdateParams ()
-
This class represents references to a group of controls.
new ngControls (object defs [, mixed parent])
defs | controls definition |
parent | parent DIV container |
Methods | |
Update | Redraws all controls. |
Release | Clears all control’s DIV containers. |
Dispose | Destroys all controls. |
AddControls | Adds controls. |
This class implements a generic panel control.
new ngPanel ([string id])
id | parent element |
Abstract class ngControl.
Standard frame control (based on ngPanel).
This class implements a generic static text control.
new ngText ([string id])
id | parent element |
Abstract class ngControl.
This class implements a generic imagemap control.
new ngImageMap ([string id])
id | parent element |
Abstract class ngControl.
Properties | |
Alt | ... |
Img | ... |
Cursor | ... |
AutoSize | ... |
Shapes | ... |
Methods | |
GetAlt | Gets alt text. |
GetImg | Gets image. |
Events | |
OnGetAlt | |
OnGetImg | |
OnGetShapeAlt | |
OnShapeClick | |
OnMouseEnter | |
OnMouseLeave | |
OnMouseShapeEnter | |
OnMouseShapeLeave |
This class implements action non-visual control.
new ngSysAction ([string id])
id | parent element |
Abstract class ngControl.
Properties | |
Text | ... |
Alt | ... |
Checked | ... |
RadioGroup | ... |
Img | ... |
Visible | Determines whether the control is visible. |
Methods | |
Check | Sets new button check state. |
Click | Clicks the button. |
SetText | Sets new button text. |
Events | |
OnSetText | |
OnGetText | |
OnGetAlt | |
OnCheckChanged | |
OnClick | |
OnGetImg | |
OnSetVisible | |
OnVisibleChanged | |
OnUpdate |
This class implements a generic button control.
new ngButton ([string id])
id | parent element |
Abstract class ngControl.
Properties | |
Action | ... |
Text | ... |
TextAlign | ... |
Alt | ... |
HTMLEncode | ... |
AutoSize | ... |
MinWidth | ... |
Checked | ... |
RadioGroup | ... |
Cursor | ... |
ReadOnly | ... |
Img | ... |
ImgAlign | ... |
ImgIndent | ... |
LeftImg | ... |
MiddleImg | ... |
RightImg | ... |
Methods | |
Check | Sets new button check state. |
Click | Clicks the button. |
SetText | Sets new button text. |
GetText | Gets text content. |
GetAlt | Gets alt text. |
Events | |
OnSetText | |
OnGetText | |
OnGetAlt | |
OnCheckChanged | |
OnDblClick | |
OnClick | |
OnMouseEnter | |
OnMouseLeave | |
OnGetImg | |
OnGetClassName |
Standard check box control (based on ngButton).
Standard radio button control (based on ngButton).
This class implements a generic group control.
new ngGroup ([string id])
id | parent element |
Abstract class ngControl.
Definition | |
CW | ClientRect width. |
CH | ClientRect height. |
ControlsPanel | Controls panel definition. |
Properties | |
Text | ... |
HTMLEncode | ... |
Frame | ... |
ControlsInside | ... |
Methods | |
GetText | Gets text content. |
GetClientRect | Gets client rectangle dimensions. |
SetClientRect | Sets client rectangle dimensions. |
Events | |
OnGetText |
This class implements a generic edit control.
new ngEdit ([string id, string text=’’])
id | parent element |
text | edit text |
Abstract class ngControl.
Standard drop down control (based on ngEdit).
Standard drop down list control (based on ngEdit).
Standard edit number control with spin buttons (based on ngEdit).
Definition | |
ArrowsAlign | |
Arrows | |
Properties | |
Step | ... |
StepRound | ... |
MinNum | ... |
MaxNum | ... |
DefaultNum | ... |
Methods | |
DoUp | Increase value by Step. |
DoDown | Decrease value by Step. |
GetNum | Gets number. |
SetNum | Sets number. |
ButtonUp | ... |
ButtonDown | ... |
Events | |
OnGetNum | |
OnSetNum | |
OnUp | |
OnDown |
c.ButtonUp
... Type: ngButton
c.ButtonDown
... Type: ngButton
This class implements a generic memo control.
new ngMemo ([string id, string text=’’])
id | parent element |
text | memo text |
Abstract class ngControl.
Properties | |
Text | ... |
DefaultText | ... |
TextAlign | ... |
Alt | ... |
Hint | ... |
HintStyle | ... |
ReadOnly | ... |
Frame | ... |
HasFocus | ... |
SelectOnFocus | ... |
Methods | |
SetText | Sets memo text. |
GetText | Gets memo text. |
GetAlt | Gets alt text. |
GetHint | Gets hint text. |
SetReadOnly | Sets readonly state of control. |
GetCaretPos | Gets caret position. |
SetCaretPos | Sets caret position. |
Events | |
OnSetText | |
OnGetText | |
OnTextChanged | |
OnGetAlt | |
OnGetHint | |
OnGetClassName | |
OnKeyDown | |
OnKeyUp | |
OnKeyPress | |
OnMouseEnter | |
OnMouseLeave | |
OnFocus | |
OnBlur |
This class implements a generic page control.
new ngPages ([string id])
id | parent element |
Abstract class ngControl.
Definition | |
Pages | ... |
ControlsPanel | Controls panel definition. |
Properties | |
Page | ... |
PagesVisible | ... |
PagesIndent | ... |
PagesSize | ... |
MaxRows | ... |
PagesAlign | ... |
PagesVAlign | ... |
TextAlign | ... |
HTMLEncode | ... |
Pages | ... |
RowOverlap | ... |
PageImages | ... |
Frame | ... |
Methods | |
SetPage | Sets current page index. |
GetPageById | Gets page index by page id. |
GetIdByPage | Gets page id by page index. |
GetPageObjById | Gets page object by page id. |
GetPageByText | Gets page index by page text caption. |
GetPageByControl | Gets page index by control placed on page. |
GetPageObjByControl | Gets page object by control placed on page. |
SetPageByControl | Sets page by control placed on page. |
Events | |
OnPageChanging | |
OnPageChanged | |
OnGetText | |
OnGetAlt | |
OnClick | |
OnDblClick |
This class implements a generic toolbar control.
new ngToolBar ([string id])
id | parent element |
Abstract class ngControl.
Properties | |
AutoSize | ... |
Vertical | ... |
VPadding | ... |
HPadding | ... |
VAlign | ... |
HAlign | ... |
Wrapable | ... |
Methods | |
CtrlBringToFront | void CtrlBringToFront (object ctrl) |
CtrlSendToBack | void CtrlSendToBack (object ctrl) |
CtrlInsertAfter | void CtrlInsertAfter (object ctrl, object whichctrl) |
CtrlInsertBefore | void CtrlInsertBefore (object ctrl, object whichctrl) |
Child Controls Properties | |
ToolBarIgnore | ... |
ToolBarAutoUpdate | ... |
ToolBarIndent | ... |
ToolBarHPadding | ... |
ToolBarVPadding | ... |
ToolBarWidth | ... |
ToolBarHeight | ... |
ToolBarBreak | ... |
ToolBarNoWrap | ... |
This class implements a generic progress bar control.
new ngProgressBar ([string id])
id | parent element |
Abstract class ngControl.
Properties | |
Position | ... |
Smooth | ... |
LeftImg | ... |
MiddleImg | ... |
RightImg | ... |
BarImg | ... |
Methods | |
SetPosition | Sets position of progress in interval 0-100. |
BeginProcess | Starts waiting animation. |
EndProcess | Ends waiting animation. |
This class implements a web browser control.
new ngWebBrowser ([string id])
id | parent element |
Abstract class ngControl.
Properties | |
URL | ... |
Methods | |
SetURL | Sets browser URL. |
GetURL | Gets browser URL. |
SetHTML | Sets HTML code directly into browser. |
GetBrowser | Gets browser IFRAME element. |
GetDocument | Gets browser document object. |
Events | |
OnSetURL | |
OnGetURL | |
OnSetHTML |
Main version of the Controls framework.
var ngControlsVer
Subversion of the Controls framework.
var ngControlsSubVer
Reference to running ngApplication object.
var ngApp
If TRUE, the controls API fixes right align property in IE6.
var ngIE6AlignFix
Defines resource string/object.
function ngLang( id, data, lng )
Begins block of locale definition with id lngid.
function ngBeginLang( lng )
Gets locale text.
function ngTxt( t, defval )
Gets locale resource object.
function ngRes( rid )
Gets control object by ID.
function ngGetControlById( id, type )
Gets control object by DOM element.
function ngGetControlByElement( elm, type )
Merges two control definitions.
function ng_MergeDef( dst, def, allowundefined, callback )
Creates control by definition.
function ngCreateControl( d, ref, parent )
Creates control by definition and type.
function ngCreateControlAsType( def, type, ref, parent )
Control identificator.
obj.ID
Control type.
obj.CtrlType
Control inheritance info.
obj.CtrlInheritedFrom
Control CSS base class.
obj.BaseClassName
Controls whether the control responds to mouse, keyboard.
obj.Enabled
Determines whether the control is visible.
obj.Visible
Specifies the position of the control.
obj.Bounds
Control identificator.
obj.ID
Control type.
obj.CtrlType
Control inheritance info.
obj.CtrlInheritedFrom
Controls whether the control responds to mouse, keyboard.
obj.Enabled
Gets access to container DIV element object.
obj.Elm = function()
...
this.AppPath
...
this.Lang
...
this.LocationHash
...
this.MobileKeyboardFix
Displays a message with Yes or No buttons to user.
this.Confirm=function( t )
Redraws all controls.
this.Update = function()
Clears all control’s DIV containers.
this.Release = function()
Destroys all controls.
this.Dispose = function()
Adds controls.
this.AddControls = function( defs, parent )
...
this.TextAlign
...
this.AutoSize
...
this.AutoSizeMode
...
this.Text
...
this.Alt
...
this.HTMLEncode
...
this.CanSelect
...
this.Alt
...
this.Img
...
this.AutoSize
...
this.Alt
...
this.Img
...
this.AutoSize
...
this.Shapes
...
this.Text
...
this.Alt
Determines whether the control is visible.
this.Visible
...
this.Action
...
this.Text
...
this.TextAlign
...
this.Alt
...
this.HTMLEncode
...
this.AutoSize
...
this.Checked
...
this.Img
...
this.ImgAlign
...
this.ImgIndent
...
this.LeftImg
...
this.MiddleImg
...
this.RightImg
...
this.Text
...
this.HTMLEncode
...
this.Frame
...
this.ControlsInside
...
this.Text
...
this.DefaultText
...
this.TextAlign
...
this.Alt
...
this.Hint
...
this.ReadOnly
...
this.Password
...
this.MaxLength
...
this.LeftImg
...
this.MiddleImg
...
this.RightImg
...
this.OffsetTop
...
this.HasFocus
...
this.SelectOnFocus
...
this.Buttons
...
this.DropDownType
...
this.DropDownControl
...
this.DropDownWidth
...
this.DropDownAlign
Increase value by Step.
c.DoUp = function()
Decrease value by Step.
c.DoDown = function()
Gets number.
c.GetNum = function()
Sets number.
c.SetNum = function( n )
...
c.ButtonUp
...
c.ButtonDown
...
this.Text
...
this.DefaultText
...
this.TextAlign
...
this.Alt
...
this.Hint
...
this.ReadOnly
...
this.Frame
...
this.HasFocus
...
this.SelectOnFocus
...
this.Page
...
this.PagesVisible
...
this.PagesIndent
...
this.PagesSize
...
this.MaxRows
...
this.PagesAlign
...
this.PagesVAlign
...
this.TextAlign
...
this.HTMLEncode
...
this.Pages
...
this.RowOverlap
...
this.PageImages
...
this.Frame
...
this.AutoSize
...
this.Vertical
...
this.VPadding
...
this.HPadding
...
this.VAlign
...
this.HAlign
...
this.Wrapable
...
this.Position
...
this.Smooth
...
this.LeftImg
...
this.MiddleImg
...
this.RightImg
...
this.BarImg
...
this.URL