neon-server/src/main/javascript/widget/widget.js
function setProperty(key, value, successCallback, errorCallback) {
        return neon.util.ajaxUtils.doPost(
            neon.serviceUrl('propertyservice', key), {
                data: value,
                contentType: 'text/plain',
                success: successCallback,
                error: errorCallback,
                responseType: 'json'
            }
        );
    }
function setProperty(key, value, successCallback, errorCallback) {
        return neon.util.ajaxUtils.doPost(
            neon.serviceUrl('propertyservice', key), {
                data: value,
                contentType: 'text/plain',
                success: successCallback,
                error: errorCallback,
                responseType: 'json'
            }
        );
    }
function setProperty ( key , value , successCallback , errorCallback ) { return neon . util . ajaxUtils . doPost ( neon . serviceUrl ( 'propertyservice' , key ) , { data : value , contentType : 'text/plain' , success : successCallback , error : errorCallback , responseType : 'json' } ) ; }
Sets a property
@method setProperty
@param {String} the property key to set
@param {String} the new value for the property
@param {Function} successCallback The callback
@param {Function} errorCallback The optional callback when an error occurs. This is a 3 parameter function that contains the xhr, a short error status and the full error message.
@return {neon.util.AjaxRequest} The xhr request object
Sets a property