Hi,

Below is the code for different Link and Button types.

Code:

var oButton = new sap.m.Button({

  text:”Accept”,

  type:”Accept”,

  })

  var oButton1 = new sap.m.Button({

  text:”Default”,

  type:”Default”,

  })

  var oButton2 = new sap.m.Button({

  text:”Emphasized”,

  type:”Emphasized”,

  })

  var oButton3 = new sap.m.Button({

  text:”Reject”,

  type:”Reject”,

  })

  var oButton4 = new sap.m.Button({

  text:”Transparent”,

  type:”Transparent”,

  })

  var oButton5 = new sap.m.Button({

  text:”Unstyled”,

  type:”Unstyled”,

  })

  var oButton6 = new sap.m.Button({

  text:”Disabled”,

  enabled:false,

  })

  var oButton7 = new sap.m.Button({

  text:”Back”,

  type:”Back”,

  })

  var oButton8 = new sap.m.Button({

  text:”Icon”,

  icon:”sap-icon://edit”,

  })

  var oLink = new sap.m.Link({

  text:”Click to get an Message”,

  press: function()

  {

  sap.m.MessageToast.show(“Link Clicked”)

  }

  })

  var oLink1 = new sap.m.Link({

  text:”Link Disabled”,

  enabled:false

  })

  var oLink2 = new sap.m.Link({

  text:”Open an WebPage”,

  href:”http://www.sdn.sap.com/

  })

  var oLink3 = new sap.m.Link({

  text:”Subtle”,

  subtle:true,

  press: function()

  {

  sap.m.MessageToast.show(“Subtle Link Clicked”)

  }

  })

  var oLink4 = new sap.m.Link({

  text:”Emphasized”,

  emphasized:true,

  press: function()

  {

  sap.m.MessageToast.show(“Emphasized Link Clicked”)

  }

  })

Link: https://output.jsbin.com/wigaha

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply