ux.js

Function Library

 

Topic

Method

click

click(ID, func) A wrapper for the listen function

listen

listen(eventName, ID, func)

getElement

getElement(ID) search an element by Id or Name

loading

loading(display) Show a loading mask to avoid the user click on any control

dialog

dialog(title, content, options, onclose) A modal dialog box

set

set(idName, status, options) Provide a visual feedback to the input controls

tabs

tabs(id, action, params=null) Add functionality to ui.tabs

dgrid

Create table from Data or BSL call

autocomplete

autocomplete(id, url, options) Add auto-complete functionality to any input box.

focus

focus(fs, f) set focus with rules

saveAll

saveAll(url, data, callback, options={}) Send data to the backend and block the app in the meanwhile. It switch the "Save" button to "Saving" also.

aget

aget(url, callback, options={}) A wrapper for ux.ajax (GET)

apost

apost(url, data, callback, options={}) A wrapper for ux.ajax (POST)

absl

absl(bsl-object,callback,options[]) a bsl wrapper

ajax

ajax(url, callback, options={}) A Wrapper for ux.ajax POST

toJson

toJson(string,boolean quoted) convert string to JSON String (convert  ' to '')

getToday

getToday(separator,json date string) : return date as string in local format

getTime

GetTime(json date astring): return time as local string

jsonDate2local

jsonDate2local(d) convert JSON Date to local date string

jsonDateTime2local

jsonDateTime2local(d) convert Json DateTime String to local date time string

min2time

min2time(Minutes) return minutes as Time. If > 1 day then the system display additional days

formatNumber

formatNumber(Number,CountOfDecimals,UseGrouping)   Convet Number to local string fomrat with defined decimal places

appTitleMenu

appTitleMenu(action,id,title,callback) Manipulate the app menu dropdown entries