Documentation > CMS Template API Library > Util > ShowEditButton(Asset,String,Int32,Int32,Int32,Int32)

ShowEditButton

Displays an edit button which when clicked, will open the associated asset for editing.

public System.Void ShowEditButton(Asset,String,Int32,Int32,Int32,Int32)

Parameters

NameDescriptionType
asset The asset to edit. CrownPeak.CMSAPI.Asset
buttonLabel The button label. System.String
left the left position. System.Int32
top The top position. System.Int32
width The width. Defaults to 80 System.Int32
height The height. Defaults to 18 System.Int32

Code Example

C#

Sample:

             Util.ShowEditButton(asset, "Click here to Edit", 10, 10);
            

Connect with Crownpeak