Applications API

The applicationAPI is defined in apps.js ,which contain the Applications class.


Using the Applications class

To use the applications API, first need to import the apps.js file

<script type="text/javascript" src="/assets/js/apps.js"></script>

And create a new instance of the Applications class :

<script type="text/javascript" >

MyApps = new Applications();

</script>


And then calling Applications methods to fetch and update data on the webpage.


Applications manipulation

setApps(appList)


create_app(app_addr, app_name, tx_fee)


get_app_section()


get_app_header(app)

Applications objects manipulation

get_app_type_objs(type_id)


create_app_obj(type_id, objAddr, newObj, tx_fee)


add_app_obj_child(objHash, keyName, childHash, tx_fee)


new_obj(type_id)


load_obj(objId, div_id)


get_app_type_objs(type_id)


update_app_type_obj(typeId, objs)


Applications files manipulation

get_app_files()


get_app_file(file_hash)


create_app_file(fileHash, fileAddr, tx_fee)


update_app_files(files, numFiles)


update_app_file(file, path)


update_app_upl(file)


get_file_html(file,filedivname)


Applications types manipulation

update_app_types()


get_obj_types(select_id)


get_obj_type_name(type_id)


add_type_key(name, key, unique)


update_type_keys(list_id)


update_types_select(select_id)


create_type()


create_app_type(type_name, type_id, tx_fee)


get_type_input_val(typeid, key)


get_type_input(typeid, key)


Applications layout manipulation

create_app_layout(fileHash, tx_fee)


update_app_layout(file, path)


update_app_upl_layout(file)


Applications modules and script manipulation

create_app_module(fileHash, tx_fee)


update_app_upl_module(file)