If you want to assign custom properties using the code, you can use component.dispatch as follows:
this.marginTop = 5;
After
this.dispatch({type: "updateUserStyle",userStyle: {marginTop: 5}});​// Perform this when position related properties to be changedpage.layout.applyLayout();